Chris PeBenito 31b7c0
#DESC Unconfined - Use to essentially disable SELinux for a particular program
Chris PeBenito 31b7c0
# This domain will be useful as a workaround for e.g. third-party daemon software
Chris PeBenito 31b7c0
# that has no policy, until one can be written for it.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# To use, label the executable with unconfined_exec_t, e.g.:
Chris PeBenito 31b7c0
# chcon -t unconfined_exec_t /usr/local/bin/appsrv
Chris PeBenito 31b7c0
# Or alternatively add it to /etc/security/selinux/src/policy/file_contexts/program/unconfined.fc
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
type unconfined_t, domain, privlog, admin, privmem, fs_domain, auth_write;
Chris PeBenito 31b7c0
type unconfined_exec_t, file_type, sysadmfile, exec_type;
Chris PeBenito 31b7c0
role sysadm_r types unconfined_t;
Chris PeBenito 31b7c0
domain_auto_trans(sysadm_t, unconfined_exec_t, unconfined_t)
Chris PeBenito 31b7c0
role system_r types unconfined_t;
Chris PeBenito 31b7c0
domain_auto_trans(initrc_t, unconfined_exec_t, unconfined_t)
Chris PeBenito 31b7c0
unconfined_domain(unconfined_t)