Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/contrib/dbadm.te

68 lines
1.2 KiB
Text
Raw Normal View History

policy_module(dbadm, 1.1.0)
########################################
#
# Declarations
#
## <desc>
## <p>
## Determine whether dbadm can manage
## generic user files.
## </p>
## </desc>
gen_tunable(dbadm_manage_user_files, false)
## <desc>
## <p>
## Determine whether dbadm can read
## generic user files.
## </p>
## </desc>
gen_tunable(dbadm_read_user_files, false)
role dbadm_r;
userdom_confined_admin_template(dbadm)
########################################
#
# Local policy
#
allow dbadm_t self:capability { dac_read_search };
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)
logging_send_audit_msgs(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)
')
tunable_policy(`dbadm_read_user_files',`
userdom_read_user_home_content_files(dbadm_t)
userdom_read_user_tmp_files(dbadm_t)
')
optional_policy(`
mysql_admin(dbadm_t, dbadm_r)
')
optional_policy(`
postgresql_admin(dbadm_t, dbadm_r)
')
optional_policy(`
sudo_role_template(dbadm, dbadm_r, dbadm_t)
')