selinux-refpolicy/policy/modules/roles/dbadm.te

61 lines
1.2 KiB
Plaintext
Raw Normal View History

2010-02-08 15:34:08 +00:00
policy_module(dbadm, 1.0.0)
########################################
#
# Declarations
#
2010-08-19 12:41:39 +00:00
## <desc>
## <p>
## Allow dbadm to manage files in users home directories
## </p>
## </desc>
gen_tunable(dbadm_manage_user_files, false)
## <desc>
## <p>
## Allow dbadm to read files in users home directories
## </p>
## </desc>
gen_tunable(dbadm_read_user_files, false)
2010-02-08 15:34:08 +00:00
role dbadm_r;
2010-08-19 12:41:39 +00:00
userdom_base_user_template(dbadm)
2010-02-08 15:34:08 +00:00
########################################
#
# database admin local policy
#
2010-08-19 12:41:39 +00:00
allow dbadm_t self:capability { dac_override dac_read_search sys_ptrace };
files_dontaudit_search_all_dirs(dbadm_t)
files_delete_generic_locks(dbadm_t)
files_list_var(dbadm_t)
selinux_get_enforce_mode(dbadm_t)
logging_send_syslog_msg(dbadm_t)
userdom_dontaudit_search_user_home_dirs(dbadm_t)
tunable_policy(`dbadm_manage_user_files',`
userdom_manage_user_home_content_files(dbadm_t)
userdom_read_user_tmp_files(dbadm_t)
userdom_write_user_tmp_files(dbadm_t)
2010-02-08 15:34:08 +00:00
')
2010-08-19 12:41:39 +00:00
tunable_policy(`dbadm_read_user_files',`
userdom_read_user_home_content_files(dbadm_t)
userdom_read_user_tmp_files(dbadm_t)
2010-02-08 15:34:08 +00:00
')
optional_policy(`
2010-08-19 12:41:39 +00:00
mysql_admin(dbadm_t, dbadm_r)
2010-02-08 15:34:08 +00:00
')
optional_policy(`
2010-08-19 12:41:39 +00:00
postgresql_admin(dbadm_t, dbadm_r)
2010-02-08 15:34:08 +00:00
')