|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0251df |
policy_module(xfs,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 xfs_t;
|
|
Chris PeBenito |
17de1b |
type xfs_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(xfs_t,xfs_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type xfs_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(xfs_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type xfs_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(xfs_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8708d9 |
allow xfs_t self:capability { dac_override setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit xfs_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow xfs_t self:process { signal_perms setpgid };
|
|
Chris PeBenito |
17de1b |
allow xfs_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow xfs_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(xfs_t,xfs_tmp_t,xfs_tmp_t)
|
|
Chris PeBenito |
c0868a |
manage_sock_files_pattern(xfs_t,xfs_tmp_t,xfs_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(xfs_t, xfs_tmp_t, { sock_file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(xfs_t,xfs_var_run_t,xfs_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(xfs_t,xfs_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(xfs_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_list_bin(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(xfs_t)
|
|
Chris PeBenito |
465510 |
dev_read_urand(xfs_t)
|
|
Chris PeBenito |
465510 |
dev_read_rand(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(xfs_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(xfs_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(xfs_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_use_nsswitch(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(xfs_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(xfs_t)
|
|
Chris PeBenito |
17de1b |
miscfiles_read_fonts(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(xfs_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
xfs_exec(xfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_debian',`
|
|
Chris PeBenito |
17de1b |
# for /tmp/.font-unix/fs7100
|
|
Chris PeBenito |
17de1b |
init_script_tmp_filetrans(xfs_t,xfs_tmp_t,sock_file)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_unallocated_ttys(xfs_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(xfs_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_read_root_files(xfs_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(xfs_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(xfs_t)
|
|
Chris PeBenito |
17de1b |
')
|