Chris PeBenito 8cc494
Chris PeBenito 8cc494
policy_module(usernetctl,1.0.0)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
########################################
Chris PeBenito 8cc494
#
Chris PeBenito 8cc494
# Declarations
Chris PeBenito 8cc494
#
Chris PeBenito 8cc494
Chris PeBenito 8cc494
type usernetctl_t;
Chris PeBenito 8cc494
type usernetctl_exec_t;
Chris PeBenito 8cc494
domain_type(usernetctl_t)
Chris PeBenito 8cc494
domain_entry_file(usernetctl_t,usernetctl_exec_t)
Chris PeBenito 15722e
domain_interactive_fd(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
########################################
Chris PeBenito 8cc494
#
Chris PeBenito 8cc494
# Local policy
Chris PeBenito 8cc494
#
Chris PeBenito 8cc494
Chris PeBenito 8cc494
allow usernetctl_t self:capability { setuid setgid dac_override };
Chris PeBenito 8cc494
allow usernetctl_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 8cc494
allow usernetctl_t self:fd use;
Chris PeBenito 8cc494
allow usernetctl_t self:fifo_file rw_file_perms;
Chris PeBenito 8cc494
allow usernetctl_t self:shm create_shm_perms;
Chris PeBenito 8cc494
allow usernetctl_t self:sem create_sem_perms;
Chris PeBenito 8cc494
allow usernetctl_t self:msgq create_msgq_perms;
Chris PeBenito 8cc494
allow usernetctl_t self:msg { send receive };
Chris PeBenito 8cc494
allow usernetctl_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 8cc494
allow usernetctl_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 8cc494
allow usernetctl_t self:unix_dgram_socket sendto;
Chris PeBenito 8cc494
allow usernetctl_t self:unix_stream_socket connectto;
Chris PeBenito 8cc494
Chris PeBenito 8cc494
can_exec(usernetctl_t,usernetctl_exec_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
kernel_read_system_state(usernetctl_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
corecmd_list_bin(usernetctl_t)
Chris PeBenito 8cc494
corecmd_exec_bin(usernetctl_t)
Chris PeBenito 8cc494
corecmd_list_sbin(usernetctl_t)
Chris PeBenito 8cc494
corecmd_exec_sbin(usernetctl_t)
Chris PeBenito 8cc494
corecmd_exec_shell(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
domain_dontaudit_read_all_domains_state(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
files_read_etc_files(usernetctl_t)
Chris PeBenito 8cc494
files_exec_etc_files(usernetctl_t)
Chris PeBenito 8cc494
files_read_etc_runtime_files(usernetctl_t)
Chris PeBenito 8cc494
files_list_pids(usernetctl_t)
Chris PeBenito 8cc494
files_list_home(usernetctl_t)
Chris PeBenito 8cc494
files_read_usr_files(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
fs_search_auto_mountpoints(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
libs_use_ld_so(usernetctl_t)
Chris PeBenito 8cc494
libs_use_shared_libs(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
miscfiles_read_localization(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
seutil_read_config(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
sysnet_read_config(usernetctl_t)
Chris PeBenito 8cc494
Chris PeBenito 8cc494
optional_policy(`hostname',`
Chris PeBenito 8cc494
	hostname_exec(usernetctl_t)
Chris PeBenito 8cc494
')
Chris PeBenito 8cc494
Chris PeBenito 8cc494
optional_policy(`nis',`
Chris PeBenito 8cc494
	nis_use_ypbind(usernetctl_t)
Chris PeBenito 8cc494
')