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

34 lines
496 B
Plaintext
Raw Normal View History

2010-02-08 15:34:08 +00:00
policy_module(dbadm, 1.0.0)
########################################
#
# Declarations
#
role dbadm_r;
userdom_unpriv_user_template(dbadm)
########################################
#
# database admin local policy
#
optional_policy(`
mysql_admin(dbadm_t, dbadm_r)
')
optional_policy(`
postgresql_admin(dbadm_t, dbadm_r)
')
# For starting up daemon processes
optional_policy(`
su_role_template(dbadm, dbadm_r, dbadm_t)
')
optional_policy(`
sudo_role_template(dbadm, dbadm_r, dbadm_t)
')