|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
c12621 |
policy_module(sxid, 1.4.1)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
########################################
|
|
Chris PeBenito |
b6cc2f |
#
|
|
Chris PeBenito |
b6cc2f |
# Declarations
|
|
Chris PeBenito |
b6cc2f |
#
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
type sxid_t;
|
|
Chris PeBenito |
b6cc2f |
type sxid_exec_t;
|
|
Chris PeBenito |
0bfccd |
application_domain(sxid_t, sxid_exec_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
type sxid_log_t;
|
|
Chris PeBenito |
b6cc2f |
logging_log_file(sxid_log_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
type sxid_tmp_t;
|
|
Chris PeBenito |
b6cc2f |
files_tmp_file(sxid_tmp_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
########################################
|
|
Chris PeBenito |
b6cc2f |
#
|
|
Chris PeBenito |
b6cc2f |
# Local policy
|
|
Chris PeBenito |
b6cc2f |
#
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
allow sxid_t self:capability { dac_override dac_read_search fsetid };
|
|
Chris PeBenito |
b6cc2f |
dontaudit sxid_t self:capability { setuid setgid sys_tty_config };
|
|
Chris PeBenito |
b6cc2f |
allow sxid_t self:process signal_perms;
|
|
Chris PeBenito |
c0868a |
allow sxid_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
b6cc2f |
allow sxid_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
b6cc2f |
allow sxid_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
c0868a |
allow sxid_t sxid_log_t:file manage_file_perms;
|
|
Chris PeBenito |
b6cc2f |
logging_log_filetrans(sxid_t,sxid_log_t,file)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(sxid_t, sxid_tmp_t, sxid_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(sxid_t, sxid_tmp_t, sxid_tmp_t)
|
|
Chris PeBenito |
b6cc2f |
files_tmp_filetrans(sxid_t, sxid_tmp_t, { file dir })
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
kernel_read_system_state(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
kernel_read_kernel_sysctls(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
corecmd_exec_bin(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
corecmd_exec_shell(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(sxid_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
corenet_tcp_sendrecv_generic_if(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
corenet_udp_sendrecv_generic_if(sxid_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(sxid_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
corenet_tcp_sendrecv_all_ports(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
corenet_udp_sendrecv_all_ports(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
dev_read_sysfs(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
dev_getattr_all_blk_files(sxid_t)
|
|
Chris PeBenito |
2ed690 |
dev_getattr_all_chr_files(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
domain_use_interactive_fds(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
files_list_all(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
files_getattr_all_symlinks(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
files_getattr_all_pipes(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
files_getattr_all_sockets(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
fs_getattr_xattr_fs(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
fs_search_auto_mountpoints(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
fs_list_all(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
term_dontaudit_use_console(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
auth_read_all_files_except_shadow(sxid_t)
|
|
Chris PeBenito |
13d7ce |
auth_dontaudit_getattr_shadow(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
init_use_fds(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
init_use_script_ptys(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
logging_send_syslog_msg(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
miscfiles_read_localization(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
mount_exec(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
sysnet_read_config(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
userdom_dontaudit_use_unpriv_user_fds(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
0bfccd |
cron_system_entry(sxid_t, sxid_exec_t)
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
optional_policy(`
|
|
Chris PeBenito |
b6cc2f |
mta_send_mail(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
')
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
optional_policy(`
|
|
Chris PeBenito |
b6cc2f |
seutil_sigchld_newrole(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
')
|
|
Chris PeBenito |
b6cc2f |
|
|
Chris PeBenito |
b6cc2f |
optional_policy(`
|
|
Chris PeBenito |
b6cc2f |
udev_read_db(sxid_t)
|
|
Chris PeBenito |
b6cc2f |
')
|