2015-07-17 12:56:43 +00:00
|
|
|
policy_module(sysadm, 2.8.3)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Allow sysadm to debug or ptrace all processes.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
2008-07-23 21:38:39 +00:00
|
|
|
gen_tunable(allow_ptrace, false)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2014-09-15 17:22:27 +00:00
|
|
|
#role sysadm_r;
|
2008-04-29 13:58:34 +00:00
|
|
|
|
|
|
|
userdom_admin_user_template(sysadm)
|
|
|
|
|
|
|
|
ifndef(`enable_mls',`
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_security_admin_template(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
corecmd_exec_shell(sysadm_t)
|
|
|
|
|
2014-05-23 18:18:10 +00:00
|
|
|
mls_process_read_all_levels(sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
ubac_process_exempt(sysadm_t)
|
|
|
|
ubac_file_exempt(sysadm_t)
|
|
|
|
ubac_fd_exempt(sysadm_t)
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
init_exec(sysadm_t)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
# Add/remove user home directories
|
|
|
|
userdom_manage_user_home_dirs(sysadm_t)
|
|
|
|
userdom_home_filetrans_user_home_dir(sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
|
|
|
ifdef(`direct_sysadm_daemon',`
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
init_run_daemon(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
',`
|
|
|
|
ifdef(`distro_gentoo',`
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
seutil_init_script_run_runinit(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2011-09-03 14:21:09 +00:00
|
|
|
ifdef(`distro_gentoo',`
|
2011-09-06 17:58:04 +00:00
|
|
|
init_exec_rc(sysadm_t)
|
2011-09-03 14:21:09 +00:00
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
ifndef(`enable_mls',`
|
|
|
|
logging_manage_audit_log(sysadm_t)
|
|
|
|
logging_manage_audit_config(sysadm_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
logging_run_auditctl(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
tunable_policy(`allow_ptrace',`
|
|
|
|
domain_ptrace_all_domains(sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
abrt_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
accountsd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
acct_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
afs_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
aiccu_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
aide_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
aisexecd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
amanda_run_recover(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
amavis_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
amtu_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
apache_admin(sysadm_t, sysadm_r)
|
|
|
|
apache_run_helper(sysadm_t, sysadm_r)
|
|
|
|
#apache_run_all_scripts(sysadm_t, sysadm_r)
|
|
|
|
#apache_domtrans_sys_script(sysadm_t)
|
|
|
|
apache_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
apcupsd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
apm_admin(sysadm_t, sysadm_r)
|
|
|
|
apm_run_client(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
apt_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
arpwatch_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
asterisk_admin(sysadm_t, sysadm_r)
|
|
|
|
asterisk_stream_connect(sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
auditadm_role_change(sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
automount_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
avahi_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
backup_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bacula_run_admin(sysadm_t, sysadm_r)
|
|
|
|
bacula_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bcfg2_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bind_admin(sysadm_t, sysadm_r)
|
|
|
|
bind_run_ndc(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bird_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bitlbee_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
boinc_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bootloader_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
bugzilla_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cachefilesd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
calamaris_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
callweaver_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
canna_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ccs_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
certmaster_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
certmonger_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
certwatch_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cfengine_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cgroup_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
chronyd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cipe_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
clamav_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
clock_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
clockspeed_run_cli(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cmirrord_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cobbler_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
collectd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
condor_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
consoletype_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
corosync_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
couchdb_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-07-11 09:15:47 +00:00
|
|
|
optional_policy(`
|
|
|
|
cron_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
ctdb_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cups_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cvs_admin(sysadm_t, sysadm_r)
|
|
|
|
cvs_exec(sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cyphesis_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cyrus_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dante_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dcc_run_cdcc(sysadm_t, sysadm_r)
|
|
|
|
dcc_run_client(sysadm_t, sysadm_r)
|
|
|
|
dcc_run_dbclean(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ddclient_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ddcprobe_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
denyhosts_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
devicekit_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dhcpd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dictd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dirmngr_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
distcc_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dkim_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dmesg_exec(sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dmidecode_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dnsmasq_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dnssectrigger_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dovecot_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dpkg_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
drbd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dspam_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
entropyd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
exim_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
fail2ban_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
fcoe_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
fetchmail_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
firewalld_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
firstboot_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
fstools_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ftp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gatekeeper_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gdomap_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
glance_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
glusterfs_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gpm_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gpsd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
hadoop_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
hddtemp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
hostname_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
howl_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
hypervkvp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
i18n_input_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
icecast_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ifplugd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
inn_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
iodine_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-07-11 09:15:45 +00:00
|
|
|
ipsec_admin(sysadm_t, sysadm_r)
|
2015-06-08 20:38:22 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
iptables_admin(sysadm_t, sysadm_r)
|
|
|
|
iptables_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
irqbalance_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
iscsi_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
isnsd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
jabber_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
kdump_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
kerberos_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
kerneloops_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
keystone_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
kismet_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ksmtuned_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
kudzu_admin(sysadm_t, sysadm_r)
|
|
|
|
kudzu_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
l2tp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ldap_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
libs_run_ldconfig(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
lightsquid_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
likewise_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
lircd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
lldpad_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
lockdev_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
logrotate_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
lpd_run_checkpc(sysadm_t, sysadm_r)
|
|
|
|
lpd_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
lsmd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-07-11 09:15:44 +00:00
|
|
|
lvm_admin(sysadm_t, sysadm_r)
|
2015-06-08 20:38:22 +00:00
|
|
|
lvm_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
mandb_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
mcelog_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
memcached_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
minidlna_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
minissdpd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
modutils_run_depmod(sysadm_t, sysadm_r)
|
|
|
|
modutils_run_insmod(sysadm_t, sysadm_r)
|
|
|
|
modutils_run_update_mods(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
mongodb_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
monop_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
mount_run(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mozilla_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mpd_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
2011-10-03 19:24:38 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mplayer_role(sysadm_r, sysadm_t)
|
2011-10-03 19:24:38 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mrtg_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mscan_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2012-03-01 20:18:35 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mta_role(sysadm_r, sysadm_t)
|
2012-03-01 20:18:35 +00:00
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
munin_stream_connect(sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
mysql_admin(sysadm_t, sysadm_r)
|
|
|
|
mysql_stream_connect(sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
nagios_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
nessus_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
netutils_run(sysadm_t, sysadm_r)
|
|
|
|
netutils_run_ping(sysadm_t, sysadm_r)
|
|
|
|
netutils_run_traceroute(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
networkmanager_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
nis_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
nscd_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
nslcd_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
ntop_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
ntp_admin(sysadm_t, sysadm_r)
|
|
|
|
corenet_udp_bind_ntp_port(sysadm_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
numad_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
nut_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
oav_run_update(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
oident_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
hadoop 1/10 -- unconfined
On 10/04/2010 02:18 PM, Christopher J. PeBenito wrote:
> On 10/04/10 13:15, Paul Nuzzi wrote:
>> On 10/01/2010 01:56 PM, Christopher J. PeBenito wrote:
>>> On 10/01/10 11:17, Paul Nuzzi wrote:
>>>> On 10/01/2010 08:02 AM, Dominick Grift wrote:
>>>>> On Thu, Sep 30, 2010 at 03:39:40PM -0400, Paul Nuzzi wrote:
>>>>>> I updated the patch based on recommendations from the mailing list.
>>>>>> All of hadoop's services are included in one module instead of
>>>>>> individual ones. Unconfined and sysadm roles are given access to
>>>>>> hadoop and zookeeper client domain transitions. The services are started
>>>>>> using run_init. Let me know what you think.
>>>>>
>>>>> Why do some hadoop domain need to manage generic tmp?
>>>>>
>>>>> files_manage_generic_tmp_dirs(zookeeper_t)
>>>>> files_manage_generic_tmp_dirs(hadoop_t)
>>>>> files_manage_generic_tmp_dirs(hadoop_$1_initrc_t)
>>>>> files_manage_generic_tmp_files(hadoop_$1_initrc_t)
>>>>> files_manage_generic_tmp_files(hadoop_$1_t)
>>>>> files_manage_generic_tmp_dirs(hadoop_$1_t)
>>>>
>>>> This has to be done for Java JMX to work. All of the files are written to
>>>> /tmp/hsperfdata_(hadoop/zookeeper). /tmp/hsperfdata_ is labeled tmp_t while
>>>> all the files for each service are labeled with hadoop_*_tmp_t. The first service
>>>> will end up owning the directory if it is not labeled tmp_t.
>>>
>>> The hsperfdata dir in /tmp certainly the bane of policy writers. Based on a quick look through the policy, it looks like the only dir they create in /tmp is this hsperfdata dir. I suggest you do something like
>>>
>>> files_tmp_filetrans(hadoop_t, hadoop_hsperfdata_t, dir)
>>> files_tmp_filetrans(zookeeper_t, hadoop_hsperfdata_t, dir)
>>>
>>> filetrans_pattern(hadoop_t, hadoop_hsperfdata_t, hadoop_tmp_t, file)
>>> filetrans_pattern(zookeeper_t, hadoop_hsperfdata_t, zookeeper_tmp_t, file)
>>>
>>
>> That looks like a better way to handle the tmp_t problem.
>>
>> I changed the patch with your comments. Hopefully this will be one of the last updates.
>> Tested on a CDH3 cluster as a module without any problems.
>
> There are several little issues with style, but it'll be easier just to fix them when its committed.
>
> Other comments inline.
>
I did my best locking down the ports hadoop uses. Unfortunately the services use high, randomized ports making
tcp_connect_generic_port a must have. Hopefully one day hadoop will settle on static ports. I added hadoop_datanode port 50010 since it is important to lock down that service. I changed the patch based on the rest of the comments.
Signed-off-by: Paul Nuzzi <pjnuzzi@tycho.ncsc.mil>
2010-10-05 19:59:29 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
openct_admin(sysadm_t, sysadm_r)
|
hadoop 1/10 -- unconfined
On 10/04/2010 02:18 PM, Christopher J. PeBenito wrote:
> On 10/04/10 13:15, Paul Nuzzi wrote:
>> On 10/01/2010 01:56 PM, Christopher J. PeBenito wrote:
>>> On 10/01/10 11:17, Paul Nuzzi wrote:
>>>> On 10/01/2010 08:02 AM, Dominick Grift wrote:
>>>>> On Thu, Sep 30, 2010 at 03:39:40PM -0400, Paul Nuzzi wrote:
>>>>>> I updated the patch based on recommendations from the mailing list.
>>>>>> All of hadoop's services are included in one module instead of
>>>>>> individual ones. Unconfined and sysadm roles are given access to
>>>>>> hadoop and zookeeper client domain transitions. The services are started
>>>>>> using run_init. Let me know what you think.
>>>>>
>>>>> Why do some hadoop domain need to manage generic tmp?
>>>>>
>>>>> files_manage_generic_tmp_dirs(zookeeper_t)
>>>>> files_manage_generic_tmp_dirs(hadoop_t)
>>>>> files_manage_generic_tmp_dirs(hadoop_$1_initrc_t)
>>>>> files_manage_generic_tmp_files(hadoop_$1_initrc_t)
>>>>> files_manage_generic_tmp_files(hadoop_$1_t)
>>>>> files_manage_generic_tmp_dirs(hadoop_$1_t)
>>>>
>>>> This has to be done for Java JMX to work. All of the files are written to
>>>> /tmp/hsperfdata_(hadoop/zookeeper). /tmp/hsperfdata_ is labeled tmp_t while
>>>> all the files for each service are labeled with hadoop_*_tmp_t. The first service
>>>> will end up owning the directory if it is not labeled tmp_t.
>>>
>>> The hsperfdata dir in /tmp certainly the bane of policy writers. Based on a quick look through the policy, it looks like the only dir they create in /tmp is this hsperfdata dir. I suggest you do something like
>>>
>>> files_tmp_filetrans(hadoop_t, hadoop_hsperfdata_t, dir)
>>> files_tmp_filetrans(zookeeper_t, hadoop_hsperfdata_t, dir)
>>>
>>> filetrans_pattern(hadoop_t, hadoop_hsperfdata_t, hadoop_tmp_t, file)
>>> filetrans_pattern(zookeeper_t, hadoop_hsperfdata_t, zookeeper_tmp_t, file)
>>>
>>
>> That looks like a better way to handle the tmp_t problem.
>>
>> I changed the patch with your comments. Hopefully this will be one of the last updates.
>> Tested on a CDH3 cluster as a module without any problems.
>
> There are several little issues with style, but it'll be easier just to fix them when its committed.
>
> Other comments inline.
>
I did my best locking down the ports hadoop uses. Unfortunately the services use high, randomized ports making
tcp_connect_generic_port a must have. Hopefully one day hadoop will settle on static ports. I added hadoop_datanode port 50010 since it is important to lock down that service. I changed the patch based on the rest of the comments.
Signed-off-by: Paul Nuzzi <pjnuzzi@tycho.ncsc.mil>
2010-10-05 19:59:29 +00:00
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
openhpi_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
openvpn_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
openvswitch_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pacemaker_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pads_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pcmcia_run_cardctl(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pcscd_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pegasus_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
perdition_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pingd_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pkcs_admin_slotd(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
plymouthd_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
polipo_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
portage_run(sysadm_t, sysadm_r)
|
|
|
|
portage_run_fetch(sysadm_t, sysadm_r)
|
|
|
|
portage_run_gcc_config(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
portmap_run_helper(sysadm_t, sysadm_r)
|
|
|
|
portmap_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
portreserve_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
postfix_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
postfixpolicyd_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
postgrey_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
ppp_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
prelude_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
privoxy_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
psad_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
puppet_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
pxe_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
pyicqt_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
pyzor_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
pyzor_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
qpidd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
quantum_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
quota_run(sysadm_t, sysadm_r)
|
2015-06-08 20:38:22 +00:00
|
|
|
quota_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rabbitmq_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
radius_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
radvd_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
system admin needs to use mdadm, but type is not allowed
After a quick discussion with dominique, new attempt due to two issues:
1. No need (or even forbidden) to have "role $1 types foo_exec_t"
2. Suggestion to use the raid_run_mdadm name instead of raid_mdadm_role. The
idea here is to use raid_mdadm_role for prefixed domains (cfr. screen)
whereas raid_run_mdadm is to transition and run into a specific domain
Without wanting to (re?)start any discussion on prefixed versus non-prefixed
domains, such a naming convention could help us to keep the reference policy
cleaner (and naming conventions easy).
Also, refpolicy InterfaceNaming document only talks about run, not role.
So, without much further ado... ;-)
The system administrator (sysadm_r role) needs to use mdadm, but is not
allowed to use the mdadm_t type.
Rather than extend raid_domtrans_mdadm to allow this as well, use a
raid_mdadm_role (a bit more conform other role usages).
The other users of raid_domtrans_mdadm are all domains that run in system_r
role, which does have this type allowed (as per the system/raid.te
definition), so it wouldn't hurt to use raid_domtrans_mdadm for this.
Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
2011-04-28 20:44:14 +00:00
|
|
|
raid_run_mdadm(sysadm_r, sysadm_t)
|
2015-06-08 20:38:22 +00:00
|
|
|
raid_admin_mdadm(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
razor_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
redis_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
resmgr_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rgmanager_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rhcs_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rhsmcertd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ricci_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rngd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
roundup_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rpc_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
rpc_domtrans_nfsd(sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
rpcbind_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
rpm_run(sysadm_t, sysadm_r)
|
2015-06-08 20:38:22 +00:00
|
|
|
rpm_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rssh_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
rsync_admin(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
rsync_exec(sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
rtkit_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
rwho_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
samba_admin(sysadm_t, sysadm_r)
|
|
|
|
samba_run_smbcontrol(sysadm_t, sysadm_r)
|
|
|
|
samba_run_smbmount(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
samba_run_net(sysadm_t, sysadm_r)
|
|
|
|
samba_run_winbind_helper(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2010-11-08 06:42:38 +00:00
|
|
|
optional_policy(`
|
2012-10-26 10:05:55 +00:00
|
|
|
samhain_admin(sysadm_t, sysadm_r)
|
2010-11-08 06:42:38 +00:00
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
sanlock_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
sasl_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
sblim_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
screen_role_template(sysadm, sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
secadm_role_change(sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
sensord_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-07-11 09:15:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
setrans_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
setroubleshoot_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
seutil_run_setfiles(sysadm_t, sysadm_r)
|
|
|
|
seutil_run_runinit(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
shorewall_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
slpd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
smartmon_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
smokeping_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
smstools_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
snmp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
snort_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
soundserver_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
spamassassin_admin(sysadm_t, sysadm_r)
|
2008-11-05 16:10:46 +00:00
|
|
|
spamassassin_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
ssh_role_template(sysadm, sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
sssd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
staff_role_change(sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
stapserver_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
su_role_template(sysadm, sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
sudo_role_template(sysadm, sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
svnserve_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
sysnet_run_ifconfig(sysadm_t, sysadm_r)
|
|
|
|
sysnet_run_dhcpc(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
sysstat_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
tcsd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
tftp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
tgtd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
thunderbird_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
tor_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
transproxy_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
tripwire_run_siggen(sysadm_t, sysadm_r)
|
|
|
|
tripwire_run_tripwire(sysadm_t, sysadm_r)
|
|
|
|
tripwire_run_twadmin(sysadm_t, sysadm_r)
|
|
|
|
tripwire_run_twprint(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
tvtime_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
tzdata_domtrans(sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
ulogd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
uml_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-05-22 15:24:52 +00:00
|
|
|
unconfined_domtrans(sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
unprivuser_role_change(sysadm_r)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
uptime_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
usbmodules_run(sysadm_t, sysadm_r)
|
|
|
|
')
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
userhelper_role_template(sysadm, sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
usermanage_run_admin_passwd(sysadm_t, sysadm_r)
|
|
|
|
usermanage_run_groupadd(sysadm_t, sysadm_r)
|
|
|
|
usermanage_run_useradd(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2012-04-11 18:35:57 +00:00
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
uucp_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
uuidd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
varnishd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
varnishd_admin_varnishlog(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
vdagent_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
vhostmd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
virt_admin(sysadm_t, sysadm_r)
|
2012-04-11 18:35:57 +00:00
|
|
|
virt_stream_connect(sysadm_t)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
vmware_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
vnstatd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
vpn_run(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
watchdog_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
wdmd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
webalizer_run(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
wireshark_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2010-10-26 06:34:11 +00:00
|
|
|
optional_policy(`
|
2010-11-01 15:22:07 +00:00
|
|
|
vlock_run(sysadm_t, sysadm_r)
|
2010-10-26 06:34:11 +00:00
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
xserver_role(sysadm_r, sysadm_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
xfs_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
yam_run(sysadm_t, sysadm_r)
|
2008-04-29 13:58:34 +00:00
|
|
|
')
|
2010-07-21 14:39:57 +00:00
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
zabbix_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
zarafa_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
zebra_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2010-07-21 14:39:57 +00:00
|
|
|
ifndef(`distro_redhat',`
|
|
|
|
optional_policy(`
|
|
|
|
auth_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2015-06-08 20:38:22 +00:00
|
|
|
bluetooth_admin(sysadm_t, sysadm_r)
|
2010-07-21 14:39:57 +00:00
|
|
|
bluetooth_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cdrecord_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
cron_admin_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dbus_role_template(sysadm, sysadm_r, sysadm_t)
|
2012-10-22 12:48:22 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gnome_role_template(sysadm, sysadm_r, sysadm_t)
|
|
|
|
')
|
2010-07-21 14:39:57 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
evolution_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
games_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gift_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
gpg_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
irc_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
|
2015-06-08 20:38:22 +00:00
|
|
|
optional_policy(`
|
|
|
|
ircd_admin(sysadm_t, sysadm_r)
|
|
|
|
')
|
|
|
|
|
2010-07-21 14:39:57 +00:00
|
|
|
optional_policy(`
|
|
|
|
java_role(sysadm_r, sysadm_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|