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