2020-08-18 13:09:10 +00:00
|
|
|
policy_module(seunshare, 1.3.0)
|
2009-09-28 19:40:06 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type seunshare_t;
|
|
|
|
type seunshare_exec_t;
|
|
|
|
application_domain(seunshare_t, seunshare_exec_t)
|
|
|
|
role system_r types seunshare_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# seunshare local policy
|
|
|
|
#
|
|
|
|
|
2017-02-15 23:47:33 +00:00
|
|
|
allow seunshare_t self:capability { dac_override setpcap setuid sys_admin };
|
2009-09-28 19:40:06 +00:00
|
|
|
allow seunshare_t self:process { setexec signal getcap setcap };
|
|
|
|
|
2020-04-14 21:47:06 +00:00
|
|
|
allow seunshare_t self:fifo_file rw_fifo_file_perms;
|
2009-09-28 19:40:06 +00:00
|
|
|
allow seunshare_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
|
|
|
corecmd_exec_shell(seunshare_t)
|
|
|
|
corecmd_exec_bin(seunshare_t)
|
|
|
|
|
|
|
|
files_read_etc_files(seunshare_t)
|
|
|
|
files_mounton_all_poly_members(seunshare_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(seunshare_t)
|
|
|
|
|
2009-12-01 15:31:28 +00:00
|
|
|
logging_send_syslog_msg(seunshare_t)
|
|
|
|
|
2009-09-28 19:40:06 +00:00
|
|
|
miscfiles_read_localization(seunshare_t)
|
|
|
|
|
|
|
|
userdom_use_user_terminals(seunshare_t)
|
2009-12-01 15:31:28 +00:00
|
|
|
|
|
|
|
ifdef(`hide_broken_symptoms', `
|
|
|
|
fs_dontaudit_rw_anon_inodefs_files(seunshare_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
mozilla_dontaudit_manage_user_home_files(seunshare_t)
|
|
|
|
')
|
|
|
|
')
|