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

33 lines
495 B
Plaintext
Raw Normal View History

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