Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
policy_module(seunshare, 1.0.0)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
# Declarations
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
type seunshare_t;
Chris PeBenito 4be8dd
type seunshare_exec_t;
Chris PeBenito 4be8dd
application_domain(seunshare_t, seunshare_exec_t)
Chris PeBenito 4be8dd
role system_r types seunshare_t;
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
########################################
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
# seunshare local policy
Chris PeBenito 4be8dd
#
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
allow seunshare_t self:capability setpcap;
Chris PeBenito 4be8dd
allow seunshare_t self:process { setexec signal getcap setcap };
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
allow seunshare_t self:fifo_file rw_file_perms;
Chris PeBenito 4be8dd
allow seunshare_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
corecmd_exec_shell(seunshare_t)
Chris PeBenito 4be8dd
corecmd_exec_bin(seunshare_t)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
files_read_etc_files(seunshare_t)
Chris PeBenito 4be8dd
files_mounton_all_poly_members(seunshare_t)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
auth_use_nsswitch(seunshare_t)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
miscfiles_read_localization(seunshare_t)
Chris PeBenito 4be8dd
Chris PeBenito 4be8dd
userdom_use_user_terminals(seunshare_t)