selinux-policy/policy/modules/admin/readahead.te

100 lines
2.8 KiB
Plaintext
Raw Normal View History

2010-05-24 19:32:01 +00:00
policy_module(readahead, 1.11.0)
2006-01-04 19:31:53 +00:00
########################################
#
# Declarations
#
type readahead_t;
type readahead_exec_t;
init_daemon_domain(readahead_t, readahead_exec_t)
application_domain(readahead_t, readahead_exec_t)
2006-01-04 19:31:53 +00:00
2009-07-28 14:08:02 +00:00
type readahead_var_lib_t;
files_type(readahead_var_lib_t)
typealias readahead_var_lib_t alias readahead_etc_rw_t;
2007-09-04 18:57:58 +00:00
2006-01-04 19:31:53 +00:00
type readahead_var_run_t;
files_pid_file(readahead_var_run_t)
########################################
#
# Local policy
#
allow readahead_t self:capability { fowner dac_override dac_read_search };
2009-07-28 14:08:02 +00:00
dontaudit readahead_t self:capability { net_admin sys_tty_config };
allow readahead_t self:process { setsched signal_perms };
2006-01-04 19:31:53 +00:00
2009-07-28 14:08:02 +00:00
manage_dirs_pattern(readahead_t, readahead_var_lib_t, readahead_var_lib_t)
manage_files_pattern(readahead_t, readahead_var_lib_t, readahead_var_lib_t)
files_search_var_lib(readahead_t)
2007-09-04 18:57:58 +00:00
manage_files_pattern(readahead_t, readahead_var_run_t, readahead_var_run_t)
files_pid_filetrans(readahead_t, readahead_var_run_t, file)
2006-01-04 19:31:53 +00:00
2009-07-28 14:08:02 +00:00
kernel_read_all_sysctls(readahead_t)
2006-01-04 19:31:53 +00:00
kernel_read_system_state(readahead_t)
kernel_dontaudit_getattr_core_if(readahead_t)
2006-01-04 19:31:53 +00:00
dev_read_sysfs(readahead_t)
dev_getattr_generic_chr_files(readahead_t)
dev_getattr_generic_blk_files(readahead_t)
2006-01-04 19:31:53 +00:00
dev_getattr_all_chr_files(readahead_t)
dev_getattr_all_blk_files(readahead_t)
dev_dontaudit_read_all_blk_files(readahead_t)
2006-01-17 17:50:10 +00:00
dev_dontaudit_getattr_memory_dev(readahead_t)
2006-09-29 14:24:57 +00:00
dev_dontaudit_getattr_nvram_dev(readahead_t)
2006-01-04 19:31:53 +00:00
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(readahead_t)
2009-07-28 14:08:02 +00:00
domain_read_all_domains_state(readahead_t)
2006-01-04 19:31:53 +00:00
files_list_non_security(readahead_t)
files_read_non_security_files(readahead_t)
2009-07-28 14:08:02 +00:00
files_create_boot_flag(readahead_t)
2009-09-09 13:45:34 +00:00
files_getattr_all_pipes(readahead_t)
2009-09-09 13:53:28 +00:00
files_dontaudit_getattr_all_sockets(readahead_t)
files_dontaudit_getattr_non_security_blk_files(readahead_t)
2006-01-04 19:31:53 +00:00
fs_getattr_all_fs(readahead_t)
fs_search_auto_mountpoints(readahead_t)
2006-01-11 15:28:14 +00:00
fs_getattr_all_pipes(readahead_t)
fs_getattr_all_files(readahead_t)
fs_read_cgroup_files(readahead_t)
fs_read_tmpfs_files(readahead_t)
2009-09-09 13:53:28 +00:00
fs_read_tmpfs_symlinks(readahead_t)
fs_list_inotifyfs(readahead_t)
fs_dontaudit_search_ramfs(readahead_t)
fs_dontaudit_read_ramfs_pipes(readahead_t)
fs_dontaudit_read_ramfs_files(readahead_t)
2009-07-28 14:08:02 +00:00
fs_dontaudit_use_tmpfs_chr_dev(readahead_t)
2006-01-04 19:31:53 +00:00
mls_file_read_all_levels(readahead_t)
2009-09-09 13:53:28 +00:00
storage_raw_read_fixed_disk(readahead_t)
2006-01-04 19:31:53 +00:00
term_dontaudit_use_console(readahead_t)
auth_dontaudit_read_shadow(readahead_t)
init_use_fds(readahead_t)
2006-02-02 21:08:12 +00:00
init_use_script_ptys(readahead_t)
2006-01-11 15:28:14 +00:00
init_getattr_initctl(readahead_t)
2006-01-04 19:31:53 +00:00
logging_send_syslog_msg(readahead_t)
2009-07-28 14:08:02 +00:00
logging_set_audit_parameters(readahead_t)
2007-09-04 18:57:58 +00:00
logging_dontaudit_search_audit_config(readahead_t)
2006-01-04 19:31:53 +00:00
miscfiles_read_localization(readahead_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(readahead_t)
2008-11-05 16:10:46 +00:00
userdom_dontaudit_search_user_home_dirs(readahead_t)
2006-01-04 19:31:53 +00:00
2007-09-04 18:57:58 +00:00
optional_policy(`
cron_system_entry(readahead_t, readahead_exec_t)
')
optional_policy(`
2006-01-04 19:31:53 +00:00
seutil_sigchld_newrole(readahead_t)
')