2022-01-06 13:55:54 +00:00
|
|
|
policy_module(lsm)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type lsmd_t;
|
|
|
|
type lsmd_exec_t;
|
|
|
|
init_daemon_domain(lsmd_t, lsmd_exec_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type lsmd_runtime_t alias lsmd_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(lsmd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow lsmd_t self:capability setgid;
|
|
|
|
allow lsmd_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_dirs_pattern(lsmd_t, lsmd_runtime_t, lsmd_runtime_t)
|
|
|
|
manage_files_pattern(lsmd_t, lsmd_runtime_t, lsmd_runtime_t)
|
|
|
|
manage_lnk_files_pattern(lsmd_t, lsmd_runtime_t, lsmd_runtime_t)
|
|
|
|
manage_sock_files_pattern(lsmd_t, lsmd_runtime_t, lsmd_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(lsmd_t, lsmd_runtime_t, { dir file sock_file })
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
logging_send_syslog_msg(lsmd_t)
|