|
Chris PeBenito |
c1af955 |
policy_module(quota, 1.4.2)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
########################################
|
|
Chris PeBenito |
052c953 |
#
|
|
Chris PeBenito |
052c953 |
# Declarations
|
|
Chris PeBenito |
052c953 |
#
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
type quota_t;
|
|
Chris PeBenito |
052c953 |
type quota_exec_t;
|
|
Chris PeBenito |
0bfccda |
init_system_domain(quota_t, quota_exec_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
type quota_db_t;
|
|
Chris PeBenito |
052c953 |
files_type(quota_db_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
type quota_flag_t;
|
|
Chris PeBenito |
052c953 |
files_type(quota_flag_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
c0868a7 |
########################################
|
|
Chris PeBenito |
c0868a7 |
#
|
|
Chris PeBenito |
c0868a7 |
# Local policy
|
|
Chris PeBenito |
c0868a7 |
#
|
|
Chris PeBenito |
c0868a7 |
|
|
Chris PeBenito |
052c953 |
allow quota_t self:capability { sys_admin dac_override };
|
|
Chris PeBenito |
052c953 |
dontaudit quota_t self:capability sys_tty_config;
|
|
Chris PeBenito |
052c953 |
allow quota_t self:process signal_perms;
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
# for /quota.*
|
|
Chris PeBenito |
6b19be3 |
allow quota_t quota_db_t:file { manage_file_perms quotaon };
|
|
Chris PeBenito |
6b19be3 |
files_root_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_boot_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_etc_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_tmp_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_home_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_usr_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_var_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
6b19be3 |
files_spool_filetrans(quota_t, quota_db_t, file)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
kernel_list_proc(quota_t)
|
|
Chris PeBenito |
052c953 |
kernel_read_proc_symlinks(quota_t)
|
|
Chris PeBenito |
445522d |
kernel_read_kernel_sysctls(quota_t)
|
|
Chris PeBenito |
5116faa |
kernel_setsched(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
dev_read_sysfs(quota_t)
|
|
Chris PeBenito |
052c953 |
dev_getattr_all_blk_files(quota_t)
|
|
Chris PeBenito |
052c953 |
dev_getattr_all_chr_files(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
4d851fe |
fs_get_xattr_fs_quotas(quota_t)
|
|
Chris PeBenito |
4d851fe |
fs_set_xattr_fs_quotas(quota_t)
|
|
Chris PeBenito |
052c953 |
fs_getattr_xattr_fs(quota_t)
|
|
Chris PeBenito |
052c953 |
fs_remount_xattr_fs(quota_t)
|
|
Chris PeBenito |
052c953 |
fs_search_auto_mountpoints(quota_t)
|
|
Chris PeBenito |
d6d16b9 |
|
|
Chris PeBenito |
f8233ab |
mls_file_read_all_levels(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
storage_raw_read_fixed_disk(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
term_dontaudit_use_console(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
15722ec |
domain_use_interactive_fds(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
9e04f5c |
files_list_all(quota_t)
|
|
Chris PeBenito |
052c953 |
files_read_all_files(quota_t)
|
|
Chris PeBenito |
052c953 |
files_read_all_symlinks(quota_t)
|
|
Chris PeBenito |
052c953 |
files_getattr_all_pipes(quota_t)
|
|
Chris PeBenito |
052c953 |
files_getattr_all_sockets(quota_t)
|
|
Chris PeBenito |
6b19be3 |
files_getattr_all_file_type_fs(quota_t)
|
|
Chris PeBenito |
052c953 |
# Read /etc/mtab.
|
|
Chris PeBenito |
052c953 |
files_read_etc_runtime_files(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
1c1ac67 |
init_use_fds(quota_t)
|
|
Chris PeBenito |
1815bad |
init_use_script_ptys(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
052c953 |
logging_send_syslog_msg(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
296273a |
userdom_use_user_terminals(quota_t)
|
|
Chris PeBenito |
15722ec |
userdom_dontaudit_use_unpriv_user_fds(quota_t)
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
bb7170f |
optional_policy(`
|
|
Chris PeBenito |
052c953 |
seutil_sigchld_newrole(quota_t)
|
|
Chris PeBenito |
052c953 |
')
|
|
Chris PeBenito |
052c953 |
|
|
Chris PeBenito |
bb7170f |
optional_policy(`
|
|
Chris PeBenito |
052c953 |
udev_read_db(quota_t)
|
|
Chris PeBenito |
052c953 |
')
|