aboutsummaryrefslogtreecommitdiff
blob: f5d145d0d8b9594c1bffd1858464392a35fe6806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
policy_module(numad, 1.0.3)

########################################
#
# 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)

type numad_var_run_t;
files_pid_file(numad_var_run_t)

########################################
#
# 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)

manage_files_pattern(numad_t, numad_var_run_t, numad_var_run_t)
files_pid_filetrans(numad_t, numad_var_run_t, file)

kernel_read_system_state(numad_t)

dev_read_sysfs(numad_t)

files_read_etc_files(numad_t)

miscfiles_read_localization(numad_t)