Blame policy/modules/roles/dbadm.te
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
policy_module(dbadm, 1.0.0)
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
########################################
|
|
Chris PeBenito |
22a287 |
#
|
|
Chris PeBenito |
22a287 |
# Declarations
|
|
Chris PeBenito |
22a287 |
#
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
role dbadm_r;
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
userdom_unpriv_user_template(dbadm)
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
########################################
|
|
Chris PeBenito |
22a287 |
#
|
|
Chris PeBenito |
22a287 |
# database admin local policy
|
|
Chris PeBenito |
22a287 |
#
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
optional_policy(`
|
|
Chris PeBenito |
22a287 |
mysql_admin(dbadm_t, dbadm_r)
|
|
Chris PeBenito |
22a287 |
')
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
optional_policy(`
|
|
Chris PeBenito |
22a287 |
postgresql_admin(dbadm_t, dbadm_r)
|
|
Chris PeBenito |
22a287 |
')
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
# For starting up daemon processes
|
|
Chris PeBenito |
22a287 |
optional_policy(`
|
|
Chris PeBenito |
22a287 |
su_role_template(dbadm, dbadm_r, dbadm_t)
|
|
Chris PeBenito |
22a287 |
')
|
|
Chris PeBenito |
22a287 |
|
|
Chris PeBenito |
22a287 |
optional_policy(`
|
|
Chris PeBenito |
22a287 |
sudo_role_template(dbadm, dbadm_r, dbadm_t)
|
|
Chris PeBenito |
22a287 |
')
|