|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
b0d224 |
policy_module(readahead,1.1.2)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
########################################
|
|
Chris PeBenito |
6f11d6 |
#
|
|
Chris PeBenito |
6f11d6 |
# Declarations
|
|
Chris PeBenito |
6f11d6 |
#
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
type readahead_t;
|
|
Chris PeBenito |
6f11d6 |
type readahead_exec_t;
|
|
Chris PeBenito |
6f11d6 |
init_daemon_domain(readahead_t,readahead_exec_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
type readahead_var_run_t;
|
|
Chris PeBenito |
6f11d6 |
files_pid_file(readahead_var_run_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
########################################
|
|
Chris PeBenito |
6f11d6 |
#
|
|
Chris PeBenito |
6f11d6 |
# Local policy
|
|
Chris PeBenito |
6f11d6 |
#
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
dontaudit readahead_t self:capability sys_tty_config;
|
|
Chris PeBenito |
6f11d6 |
allow readahead_t self:process signal_perms;
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
allow readahead_t readahead_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
6f11d6 |
allow readahead_t readahead_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(readahead_t,readahead_var_run_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
kernel_read_system_state(readahead_t)
|
|
Chris PeBenito |
445522 |
kernel_dontaudit_getattr_core_if(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
dev_read_sysfs(readahead_t)
|
|
Chris PeBenito |
207c47 |
dev_getattr_generic_chr_files(readahead_t)
|
|
Chris PeBenito |
207c47 |
dev_getattr_generic_blk_files(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
dev_getattr_all_chr_files(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
dev_getattr_all_blk_files(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
dev_dontaudit_read_all_blk_files(readahead_t)
|
|
Chris PeBenito |
93727e |
dev_dontaudit_getattr_memory_dev(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
domain_use_wide_inherit_fd(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
files_dontaudit_getattr_all_sockets(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
files_list_non_security(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
files_read_non_security_files(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
fs_getattr_all_fs(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
fs_search_auto_mountpoints(readahead_t)
|
|
Chris PeBenito |
a77e65 |
fs_getattr_all_pipes(readahead_t)
|
|
Chris PeBenito |
a77e65 |
fs_getattr_all_files(readahead_t)
|
|
Chris PeBenito |
b0d224 |
fs_dontaudit_search_ramfs(readahead_t)
|
|
Chris PeBenito |
b0d224 |
fs_dontaudit_read_ramfs_pipes(readahead_t)
|
|
Chris PeBenito |
b0d224 |
fs_dontaudit_read_ramfs_files(readahead_t)
|
|
Chris PeBenito |
a52492 |
fs_read_tmpfs_symlinks(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
term_dontaudit_use_console(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
auth_dontaudit_read_shadow(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
init_use_fd(readahead_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(readahead_t)
|
|
Chris PeBenito |
a77e65 |
init_getattr_initctl(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
libs_use_ld_so(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
libs_use_shared_libs(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
logging_send_syslog_msg(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
miscfiles_read_localization(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
userdom_dontaudit_use_unpriv_user_fd(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
userdom_dontaudit_search_sysadm_home_dir(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(readahead_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_unallocated_ttys(readahead_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_generic_ptys(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
')
|
|
Chris PeBenito |
6f11d6 |
|
|
Chris PeBenito |
6f11d6 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
6f11d6 |
seutil_sigchld_newrole(readahead_t)
|
|
Chris PeBenito |
6f11d6 |
')
|