|
|
1ec3d1a |
policy_module(numad, 1.0.0)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Declarations
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type numad_t;
|
|
|
1ec3d1a |
type numad_exec_t;
|
|
|
1ec3d1a |
init_daemon_domain(numad_t, numad_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type numad_unit_file_t;
|
|
|
1ec3d1a |
systemd_unit_file(numad_unit_file_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type numad_var_log_t;
|
|
|
1ec3d1a |
logging_log_file(numad_var_log_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type numad_var_run_t;
|
|
|
1ec3d1a |
files_pid_file(numad_var_run_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# numad local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
08157e6 |
allow numad_t self:capability sys_ptrace;
|
|
|
1ec3d1a |
allow numad_t self:fifo_file rw_fifo_file_perms;
|
|
|
db2da5e |
allow numad_t self:msgq create_msgq_perms;
|
|
|
fc7e110 |
allow numad_t self:msg { send receive };
|
|
|
1ec3d1a |
allow numad_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_files_pattern(numad_t, numad_var_log_t, numad_var_log_t)
|
|
|
08157e6 |
logging_log_filetrans(numad_t, numad_var_log_t, file)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_files_pattern(numad_t, numad_var_run_t, numad_var_run_t)
|
|
|
08157e6 |
files_pid_filetrans(numad_t, numad_var_run_t, file)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
kernel_read_system_state(numad_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dev_read_sysfs(numad_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domain_use_interactive_fds(numad_t)
|
|
|
08157e6 |
domain_read_all_domains_state(numad_t)
|
|
|
08157e6 |
domain_setpriority_all_domains(numad_t)
|
|
|
1ec3d1a |
|
|
|
08157e6 |
fs_manage_cgroup_dirs(numad_t)
|
|
|
08157e6 |
fs_rw_cgroup_files(numad_t)
|
|
|
1ec3d1a |
|
|
|
08157e6 |
tunable_policy(`deny_ptrace',`',`
|
|
|
08157e6 |
virt_ptrace(numad_t)
|
|
|
08157e6 |
')
|