Condor package out of MRG product contains following line in its RPM postinstall scriptlet: semanage fcontext -a -t unconfined_execmem_exec_t /usr/sbin/condor_startd After installing it, I can find AVCs like following one: type=AVC msg=audit(1292597868.670:22): avc: denied { write } for pid=4743 comm="load_policy" path="pipe:[16421]" dev=pipefs condor-7.4.5-0.3.el5 selinux-policy-2.4.6-279.el5_5.2 selinux-policy-targeted-2.4.6-279.el5_5.2 How reproducible: 100% Steps to Reproduce: 1. Install condor package on RHEL5 2. Run /usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR Actual results: denied AVC found Expected results: no deny
Hmm, the package have to be installed from tcontext=user_u:system_r:rpm_script_t:s0 context (not as normal logged-in root) for the AVCs to appear. That's the way how scripts are run in Beaker.
Please attach the entire AVC message.
time->Fri Dec 17 09:57:48 2010 type=SYSCALL msg=audit(1292597868.670:22): arch=40000003 syscall=11 success=yes exit=0 a0=94b1f18 a1=af28060 a2=0 a3=0 items=0 ppid=4694 pid=4743 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="load_policy" exe="/usr/sbin/load_policy" subj=system_u:system_r:load_policy_t:s0 key=(null) type=AVC msg=audit(1292597868.670:22): avc: denied { write } for pid=4743 comm="load_policy" path="pipe:[16421]" dev=pipefs ino=16421 scontext=system_u:system_r:load_policy_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=fifo_file type=AVC msg=audit(1292597868.670:22): avc: denied { write } for pid=4743 comm="load_policy" path="pipe:[16421]" dev=pipefs
Fixed in selinux-policy-2.4.6-301.el5
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1069.html