2019-10-01 00:39:26 +00:00
|
|
|
policy_module(sensord, 1.3.1)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type sensord_runtime_t alias sensord_var_run_t;
|
|
|
|
files_pid_file(sensord_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow sensord_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow sensord_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_files_pattern(sensord_t, sensord_runtime_t, sensord_runtime_t)
|
|
|
|
files_pid_filetrans(sensord_t, sensord_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(sensord_t)
|
|
|
|
|
|
|
|
files_read_etc_files(sensord_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(sensord_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(sensord_t)
|