2020-02-29 21:54:39 +00:00
|
|
|
policy_module(numad, 1.4.0)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type numad_t;
|
|
|
|
type numad_exec_t;
|
|
|
|
init_daemon_domain(numad_t, numad_exec_t)
|
|
|
|
application_executable_file(numad_exec_t)
|
|
|
|
|
|
|
|
type numad_initrc_exec_t;
|
|
|
|
init_script_file(numad_initrc_exec_t)
|
|
|
|
|
|
|
|
type numad_log_t;
|
|
|
|
logging_log_file(numad_log_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type numad_runtime_t alias numad_var_run_t;
|
|
|
|
files_pid_file(numad_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow numad_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow numad_t self:msg { send receive };
|
|
|
|
allow numad_t self:msgq create_msgq_perms;
|
|
|
|
allow numad_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
|
|
|
allow numad_t numad_log_t:file { append_file_perms create_file_perms setattr_file_perms };
|
|
|
|
logging_log_filetrans(numad_t, numad_log_t, file)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_files_pattern(numad_t, numad_runtime_t, numad_runtime_t)
|
|
|
|
files_pid_filetrans(numad_t, numad_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(numad_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(numad_t)
|
|
|
|
|
|
|
|
files_read_etc_files(numad_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(numad_t)
|