2010-09-24 08:54:04 +00:00
|
|
|
policy_module(vnstatd, 1.0.0)
|
2010-09-16 21:46:06 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type vnstatd_t;
|
|
|
|
type vnstatd_exec_t;
|
|
|
|
init_daemon_domain(vnstatd_t, vnstatd_exec_t)
|
|
|
|
|
|
|
|
permissive vnstatd_t;
|
|
|
|
|
|
|
|
type vnstatd_var_lib_t;
|
|
|
|
files_type(vnstatd_var_lib_t)
|
|
|
|
|
|
|
|
type vnstat_t;
|
|
|
|
type vnstat_exec_t;
|
|
|
|
application_domain(vnstat_t, vnstat_exec_t)
|
|
|
|
cron_system_entry(vnstat_t, vnstat_exec_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# vnstatd local policy
|
|
|
|
#
|
|
|
|
allow vnstatd_t self:process { fork signal };
|
|
|
|
allow vnstatd_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow vnstatd_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
|
|
|
manage_dirs_pattern(vnstatd_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
|
|
|
|
manage_files_pattern(vnstatd_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
|
2010-09-24 08:54:04 +00:00
|
|
|
files_var_lib_filetrans(vnstatd_t, vnstatd_var_lib_t, { dir file })
|
2010-09-16 21:46:06 +00:00
|
|
|
|
|
|
|
domain_use_interactive_fds(vnstatd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(vnstatd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(vnstatd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(vnstatd_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# vnstat local policy
|
|
|
|
#
|
2010-09-24 07:24:06 +00:00
|
|
|
allow vnstat_t self:process signal;
|
2010-09-16 21:46:06 +00:00
|
|
|
allow vnstat_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow vnstat_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
|
|
|
manage_dirs_pattern(vnstat_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
|
|
|
|
manage_files_pattern(vnstat_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
|
2010-09-24 08:54:04 +00:00
|
|
|
files_var_lib_filetrans(vnstat_t, vnstatd_var_lib_t, { dir file })
|
2010-09-16 21:46:06 +00:00
|
|
|
|
|
|
|
kernel_read_network_state(vnstat_t)
|
|
|
|
kernel_read_system_state(vnstat_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(vnstat_t)
|
|
|
|
|
|
|
|
files_read_etc_files(vnstat_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(vnstat_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(vnstat_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(vnstat_t)
|