33 lines
495 B
Plaintext
33 lines
495 B
Plaintext
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)
|
|
')
|