forked from OwlCyberDefense/refpolicy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensord.te
35 lines (24 loc) · 747 Bytes
/
sensord.te
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
policy_module(sensord, 1.3.0)
########################################
#
# Declarations
#
type sensord_t;
type sensord_exec_t;
init_daemon_domain(sensord_t, sensord_exec_t)
type sensord_initrc_exec_t;
init_script_file(sensord_initrc_exec_t)
type sensord_var_run_t;
files_pid_file(sensord_var_run_t)
########################################
#
# Local policy
#
allow sensord_t self:fifo_file rw_fifo_file_perms;
allow sensord_t self:unix_stream_socket create_stream_socket_perms;
manage_files_pattern(sensord_t, sensord_var_run_t, sensord_var_run_t)
files_pid_filetrans(sensord_t, sensord_var_run_t, file)
dev_read_sysfs(sensord_t)
files_read_etc_files(sensord_t)
logging_send_syslog_msg(sensord_t)
miscfiles_read_localization(sensord_t)