2006-01-17 23:01:14 +00:00
|
|
|
|
2008-10-14 15:46:36 +00:00
|
|
|
policy_module(usernetctl, 1.4.0)
|
2006-01-17 23:01:14 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type usernetctl_t;
|
|
|
|
type usernetctl_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
application_domain(usernetctl_t, usernetctl_exec_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_interactive_fd(usernetctl_t)
|
2006-01-17 23:01:14 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow usernetctl_t self:capability { setuid setgid dac_override };
|
|
|
|
allow usernetctl_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
|
|
allow usernetctl_t self:fd use;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow usernetctl_t self:fifo_file rw_fifo_file_perms;
|
2006-01-17 23:01:14 +00:00
|
|
|
allow usernetctl_t self:shm create_shm_perms;
|
|
|
|
allow usernetctl_t self:sem create_sem_perms;
|
|
|
|
allow usernetctl_t self:msgq create_msgq_perms;
|
|
|
|
allow usernetctl_t self:msg { send receive };
|
|
|
|
allow usernetctl_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow usernetctl_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow usernetctl_t self:unix_dgram_socket sendto;
|
|
|
|
allow usernetctl_t self:unix_stream_socket connectto;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
can_exec(usernetctl_t, usernetctl_exec_t)
|
2006-01-17 23:01:14 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(usernetctl_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(usernetctl_t)
|
2006-01-17 23:01:14 +00:00
|
|
|
|
|
|
|
corecmd_list_bin(usernetctl_t)
|
|
|
|
corecmd_exec_bin(usernetctl_t)
|
|
|
|
corecmd_exec_shell(usernetctl_t)
|
|
|
|
|
|
|
|
domain_dontaudit_read_all_domains_state(usernetctl_t)
|
|
|
|
|
|
|
|
files_read_etc_files(usernetctl_t)
|
|
|
|
files_exec_etc_files(usernetctl_t)
|
|
|
|
files_read_etc_runtime_files(usernetctl_t)
|
|
|
|
files_list_pids(usernetctl_t)
|
|
|
|
files_list_home(usernetctl_t)
|
|
|
|
files_read_usr_files(usernetctl_t)
|
|
|
|
|
|
|
|
fs_search_auto_mountpoints(usernetctl_t)
|
|
|
|
|
2008-08-07 14:17:50 +00:00
|
|
|
auth_use_nsswitch(usernetctl_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(usernetctl_t)
|
|
|
|
|
2006-01-17 23:01:14 +00:00
|
|
|
miscfiles_read_localization(usernetctl_t)
|
|
|
|
|
|
|
|
seutil_read_config(usernetctl_t)
|
|
|
|
|
|
|
|
sysnet_read_config(usernetctl_t)
|
|
|
|
|
2008-08-07 14:17:50 +00:00
|
|
|
term_search_ptys(usernetctl_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-17 23:01:14 +00:00
|
|
|
hostname_exec(usernetctl_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-17 23:01:14 +00:00
|
|
|
nis_use_ypbind(usernetctl_t)
|
|
|
|
')
|