2022-01-06 13:55:54 +00:00
|
|
|
policy_module(memlockd)
|
2021-01-20 10:17:17 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type memlockd_t;
|
|
|
|
type memlockd_exec_t;
|
|
|
|
init_daemon_domain(memlockd_t, memlockd_exec_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow memlockd_t self:capability { setgid setuid ipc_lock };
|
2021-01-25 15:29:42 +00:00
|
|
|
allow memlockd_t self:fifo_file rw_inherited_fifo_file_perms;
|
2021-01-20 10:17:17 +00:00
|
|
|
|
|
|
|
# cache /etc/shadow too
|
|
|
|
auth_read_shadow(memlockd_t)
|
|
|
|
auth_map_shadow(memlockd_t)
|
|
|
|
|
|
|
|
corecmd_exec_all_executables(memlockd_t)
|
|
|
|
corecmd_exec_bin(memlockd_t)
|
|
|
|
corecmd_exec_shell(memlockd_t)
|
|
|
|
corecmd_read_all_executables(memlockd_t)
|
|
|
|
corecmd_search_bin(memlockd_t)
|
2021-01-25 14:46:20 +00:00
|
|
|
|
2021-01-20 10:17:17 +00:00
|
|
|
files_read_etc_files(memlockd_t)
|
|
|
|
files_map_etc_files(memlockd_t)
|
|
|
|
|
2021-01-25 14:46:04 +00:00
|
|
|
libs_exec_ld_so(memlockd_t)
|
|
|
|
|
2021-01-20 10:17:17 +00:00
|
|
|
logging_send_syslog_msg(memlockd_t)
|
2021-01-25 14:46:20 +00:00
|
|
|
|
2021-01-20 10:17:17 +00:00
|
|
|
miscfiles_read_localization(memlockd_t)
|
|
|
|
|
|
|
|
sysnet_mmap_read_config(memlockd_t)
|
2021-01-25 14:46:04 +00:00
|
|
|
|
|
|
|
ifndef(`distro_debian', `
|
|
|
|
allow memlockd_t self:capability dac_read_search;
|
|
|
|
')
|