Chris PeBenito 29af4c
policy_module(seunshare, 1.1.0)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
# Declarations
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
attribute seunshare_domain;
Chris PeBenito 4be8dd
type seunshare_exec_t;
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
# seunshare local policy
Chris PeBenito 4be8dd
#
Dan Walsh 3eaa99
allow seunshare_domain self:capability { fowner setuid dac_override setpcap sys_admin sys_nice };
Dan Walsh 3eaa99
allow seunshare_domain self:process { fork setexec signal getcap setcap setsched };
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
allow seunshare_domain self:fifo_file rw_file_perms;
Dan Walsh 3eaa99
allow seunshare_domain self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
kernel_read_system_state(seunshare_domain)
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
corecmd_exec_shell(seunshare_domain)
Dan Walsh 3eaa99
corecmd_exec_bin(seunshare_domain)
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
files_search_all(seunshare_domain)
Dan Walsh 3eaa99
files_read_etc_files(seunshare_domain)
Dan Walsh 3eaa99
files_mounton_all_poly_members(seunshare_domain)
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
fs_manage_cgroup_dirs(seunshare_domain)
Dan Walsh 3eaa99
fs_manage_cgroup_files(seunshare_domain)
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
auth_use_nsswitch(seunshare_domain)
Chris PeBenito 46b037
Dan Walsh 3eaa99
logging_send_syslog_msg(seunshare_domain)
Chris PeBenito 4be8dd
Dan Walsh 3eaa99
miscfiles_read_localization(seunshare_domain)
Dan Walsh 3eaa99
Dan Walsh 3eaa99
userdom_use_user_terminals(seunshare_domain)
Chris PeBenito 46b037
Chris PeBenito 46b037
ifdef(`hide_broken_symptoms', `
Dan Walsh 3eaa99
	fs_dontaudit_rw_anon_inodefs_files(seunshare_domain)
Dan Walsh 3eaa99
 	fs_dontaudit_list_inotifyfs(seunshare_domain)
Chris PeBenito 46b037
Chris PeBenito 46b037
	optional_policy(`
Dan Walsh 3eaa99
		mozilla_dontaudit_manage_user_home_files(seunshare_domain)
Chris PeBenito 46b037
	')
Chris PeBenito 46b037
')
Dan Walsh 3eaa99