Chris PeBenito 052c95
Chris PeBenito f7925f
policy_module(quota,1.3.0)
Chris PeBenito 052c95
Chris PeBenito 052c95
########################################
Chris PeBenito 052c95
#
Chris PeBenito 052c95
# Declarations
Chris PeBenito 052c95
#
Chris PeBenito 052c95
Chris PeBenito 052c95
type quota_t;
Chris PeBenito 052c95
type quota_exec_t;
Chris PeBenito 052c95
init_system_domain(quota_t,quota_exec_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
type quota_db_t;
Chris PeBenito 052c95
files_type(quota_db_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
type quota_flag_t;
Chris PeBenito 052c95
files_type(quota_flag_t)
Chris PeBenito 052c95
Chris PeBenito c0868a
########################################
Chris PeBenito c0868a
#
Chris PeBenito c0868a
# Local policy
Chris PeBenito c0868a
#
Chris PeBenito c0868a
Chris PeBenito 052c95
allow quota_t self:capability { sys_admin dac_override };
Chris PeBenito 052c95
dontaudit quota_t self:capability sys_tty_config;
Chris PeBenito 052c95
allow quota_t self:process signal_perms;
Chris PeBenito 052c95
Chris PeBenito 052c95
# for /quota.*
Chris PeBenito 6b19be
allow quota_t quota_db_t:file { manage_file_perms quotaon };
Chris PeBenito 6b19be
files_root_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_boot_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_etc_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_tmp_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_home_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_usr_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_var_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 6b19be
files_spool_filetrans(quota_t, quota_db_t, file)
Chris PeBenito 052c95
Chris PeBenito 052c95
kernel_list_proc(quota_t)
Chris PeBenito 052c95
kernel_read_proc_symlinks(quota_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(quota_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
dev_read_sysfs(quota_t)
Chris PeBenito 052c95
dev_getattr_all_blk_files(quota_t)
Chris PeBenito 052c95
dev_getattr_all_chr_files(quota_t)
Chris PeBenito 052c95
Chris PeBenito 4d851f
fs_get_xattr_fs_quotas(quota_t)
Chris PeBenito 4d851f
fs_set_xattr_fs_quotas(quota_t)
Chris PeBenito 052c95
fs_getattr_xattr_fs(quota_t)
Chris PeBenito 052c95
fs_remount_xattr_fs(quota_t)
Chris PeBenito 052c95
fs_search_auto_mountpoints(quota_t)
Chris PeBenito d6d16b
Chris PeBenito f8233a
mls_file_read_all_levels(quota_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
storage_raw_read_fixed_disk(quota_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
term_dontaudit_use_console(quota_t)
Chris PeBenito 052c95
Chris PeBenito 15722e
domain_use_interactive_fds(quota_t)
Chris PeBenito 052c95
Chris PeBenito 9e04f5
files_list_all(quota_t)
Chris PeBenito 052c95
files_read_all_files(quota_t)
Chris PeBenito 052c95
files_read_all_symlinks(quota_t)
Chris PeBenito 052c95
files_getattr_all_pipes(quota_t)
Chris PeBenito 052c95
files_getattr_all_sockets(quota_t)
Chris PeBenito 6b19be
files_getattr_all_file_type_fs(quota_t)
Chris PeBenito 052c95
# Read /etc/mtab.
Chris PeBenito 052c95
files_read_etc_runtime_files(quota_t)
Chris PeBenito 052c95
Chris PeBenito 1c1ac6
init_use_fds(quota_t)
Chris PeBenito 1815ba
init_use_script_ptys(quota_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
libs_use_ld_so(quota_t)
Chris PeBenito 052c95
libs_use_shared_libs(quota_t)
Chris PeBenito 052c95
Chris PeBenito 052c95
logging_send_syslog_msg(quota_t)
Chris PeBenito 052c95
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(quota_t)
Chris PeBenito 052c95
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 052c95
	seutil_sigchld_newrole(quota_t)
Chris PeBenito 052c95
')
Chris PeBenito 052c95
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 052c95
	udev_read_db(quota_t)
Chris PeBenito 052c95
')