|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
policy_module(cipe,1.0.0)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
########################################
|
|
Chris PeBenito |
096ae6 |
#
|
|
Chris PeBenito |
096ae6 |
# Declarations
|
|
Chris PeBenito |
096ae6 |
#
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
type ciped_t;
|
|
Chris PeBenito |
096ae6 |
type ciped_exec_t;
|
|
Chris PeBenito |
096ae6 |
init_daemon_domain(ciped_t,ciped_exec_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
########################################
|
|
Chris PeBenito |
096ae6 |
#
|
|
Chris PeBenito |
096ae6 |
# Local policy
|
|
Chris PeBenito |
096ae6 |
#
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
allow ciped_t self:capability { net_admin ipc_lock sys_tty_config };
|
|
Chris PeBenito |
096ae6 |
dontaudit ciped_t self:capability sys_tty_config;
|
|
Chris PeBenito |
096ae6 |
allow ciped_t self:process signal_perms;
|
|
Chris PeBenito |
096ae6 |
allow ciped_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
096ae6 |
allow ciped_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
096ae6 |
allow ciped_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
096ae6 |
allow ciped_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
kernel_read_kernel_sysctls(ciped_t)
|
|
Chris PeBenito |
096ae6 |
kernel_read_system_state(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
corecmd_exec_shell(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corecmd_exec_bin(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corecmd_exec_sbin(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
corenet_udp_sendrecv_generic_if(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corenet_raw_sendrecv_generic_if(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corenet_udp_sendrecv_all_nodes(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corenet_raw_sendrecv_all_nodes(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corenet_udp_sendrecv_all_ports(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corenet_non_ipsec_sendrecv(ciped_t)
|
|
Chris PeBenito |
096ae6 |
corenet_udp_bind_all_nodes(ciped_t)
|
|
Chris PeBenito |
096ae6 |
# cipe uses the afs3-bos port (udp 7007)
|
|
Chris PeBenito |
096ae6 |
corenet_udp_bind_afs_bos_port(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
dev_read_sysfs(ciped_t)
|
|
Chris PeBenito |
096ae6 |
dev_read_rand(ciped_t)
|
|
Chris PeBenito |
096ae6 |
# for SSP
|
|
Chris PeBenito |
096ae6 |
dev_read_urand(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
domain_use_interactive_fds(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
files_read_etc_files(ciped_t)
|
|
Chris PeBenito |
096ae6 |
files_read_etc_runtime_files(ciped_t)
|
|
Chris PeBenito |
096ae6 |
files_dontaudit_search_var(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
fs_search_auto_mountpoints(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
term_dontaudit_use_console(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
init_use_fds(ciped_t)
|
|
Chris PeBenito |
096ae6 |
init_use_script_ptys(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
libs_use_ld_so(ciped_t)
|
|
Chris PeBenito |
096ae6 |
libs_use_shared_libs(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
logging_send_syslog_msg(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
miscfiles_read_localization(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
sysnet_read_config(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
userdom_dontaudit_use_unpriv_user_fds(ciped_t)
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
096ae6 |
term_dontaudit_use_unallocated_ttys(ciped_t)
|
|
Chris PeBenito |
096ae6 |
term_dontaudit_use_generic_ptys(ciped_t)
|
|
Chris PeBenito |
096ae6 |
files_dontaudit_read_root_files(ciped_t)
|
|
Chris PeBenito |
096ae6 |
')
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
optional_policy(`
|
|
Chris PeBenito |
096ae6 |
nis_use_ypbind(ciped_t)
|
|
Chris PeBenito |
096ae6 |
')
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
optional_policy(`
|
|
Chris PeBenito |
096ae6 |
seutil_sigchld_newrole(ciped_t)
|
|
Chris PeBenito |
096ae6 |
')
|
|
Chris PeBenito |
096ae6 |
|
|
Chris PeBenito |
096ae6 |
optional_policy(`
|
|
Chris PeBenito |
096ae6 |
udev_read_db(ciped_t)
|
|
Chris PeBenito |
096ae6 |
')
|