2005-11-25 19:09:08 +00:00
|
|
|
|
2008-07-02 14:07:57 +00:00
|
|
|
policy_module(xfs, 1.4.0)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type xfs_t;
|
|
|
|
type xfs_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(xfs_t, xfs_exec_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
|
|
|
type xfs_tmp_t;
|
|
|
|
files_tmp_file(xfs_tmp_t)
|
|
|
|
|
|
|
|
type xfs_var_run_t;
|
|
|
|
files_pid_file(xfs_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2006-09-22 17:14:35 +00:00
|
|
|
allow xfs_t self:capability { dac_override setgid setuid };
|
2005-11-25 19:09:08 +00:00
|
|
|
dontaudit xfs_t self:capability sys_tty_config;
|
|
|
|
allow xfs_t self:process { signal_perms setpgid };
|
|
|
|
allow xfs_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow xfs_t self:unix_dgram_socket create_socket_perms;
|
2007-11-19 20:36:33 +00:00
|
|
|
allow xfs_t self:tcp_socket create_stream_socket_perms;
|
2005-11-25 19:09:08 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(xfs_t, xfs_tmp_t, xfs_tmp_t)
|
|
|
|
manage_sock_files_pattern(xfs_t, xfs_tmp_t, xfs_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(xfs_t, xfs_tmp_t, { sock_file dir })
|
2005-11-25 19:09:08 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(xfs_t, xfs_var_run_t, xfs_var_run_t)
|
|
|
|
files_pid_filetrans(xfs_t, xfs_var_run_t, file)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(xfs_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
kernel_read_system_state(xfs_t)
|
|
|
|
|
2007-10-11 18:12:29 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(xfs_t)
|
|
|
|
corenet_all_recvfrom_netlabel(xfs_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(xfs_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(xfs_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(xfs_t)
|
|
|
|
corenet_tcp_bind_all_nodes(xfs_t)
|
|
|
|
corenet_tcp_bind_xfs_port(xfs_t)
|
|
|
|
corenet_sendrecv_xfs_server_packets(xfs_t)
|
|
|
|
|
2006-05-19 14:02:24 +00:00
|
|
|
corecmd_list_bin(xfs_t)
|
|
|
|
|
2005-11-25 19:09:08 +00:00
|
|
|
dev_read_sysfs(xfs_t)
|
2006-07-28 15:13:58 +00:00
|
|
|
dev_read_urand(xfs_t)
|
|
|
|
dev_read_rand(xfs_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
|
|
|
fs_getattr_all_fs(xfs_t)
|
|
|
|
fs_search_auto_mountpoints(xfs_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(xfs_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
|
|
|
files_read_etc_files(xfs_t)
|
|
|
|
files_read_etc_runtime_files(xfs_t)
|
2006-03-30 15:59:39 +00:00
|
|
|
files_read_usr_files(xfs_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
2006-06-12 21:36:38 +00:00
|
|
|
auth_use_nsswitch(xfs_t)
|
|
|
|
|
2005-11-25 19:09:08 +00:00
|
|
|
libs_use_ld_so(xfs_t)
|
|
|
|
libs_use_shared_libs(xfs_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(xfs_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(xfs_t)
|
|
|
|
miscfiles_read_fonts(xfs_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(xfs_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
|
|
|
sysadm_dontaudit_search_home_dirs(xfs_t)
|
2005-11-25 19:09:08 +00:00
|
|
|
|
2006-05-19 14:02:24 +00:00
|
|
|
xfs_exec(xfs_t)
|
|
|
|
|
2005-11-25 19:09:08 +00:00
|
|
|
ifdef(`distro_debian',`
|
|
|
|
# for /tmp/.font-unix/fs7100
|
2008-07-23 21:38:39 +00:00
|
|
|
init_script_tmp_filetrans(xfs_t, xfs_tmp_t, sock_file)
|
2005-11-25 19:09:08 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-25 19:09:08 +00:00
|
|
|
seutil_sigchld_newrole(xfs_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-25 19:09:08 +00:00
|
|
|
udev_read_db(xfs_t)
|
|
|
|
')
|