Bug 1388442

Summary: AVC denials when running dhpcd resource agent
Product: Red Hat Enterprise Linux 7 Reporter: michal novacek <mnovacek>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-14 13:58:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description michal novacek 2016-10-25 11:29:13 UTC
Info: Searching AVC errors produced since 1477333781.08 (Mon Oct 24 20:29:41 2016)
Searching logs...
Running '/usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR -ts 10/24/2016 20:29:41 < /dev/null >/mnt/testarea/tmp.rhts-db-submit-result.iuF_MH 2>&1'
----
time->Mon Oct 24 21:05:43 2016
type=USER_AVC msg=audit(1477335943.402:316): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  received policyload notice (seqno=3)  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
----
time->Mon Oct 24 21:05:52 2016
type=SYSCALL msg=audit(1477335952.649:334): arch=c000003e syscall=9 success=no exit=-13 a0=0 a1=208470 a2=5 a3=802 items=0 ppid=9143 pid=9144 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dhcpd" exe="/usr/sbin/dhcpd" subj=system_u:system_r:dhcpd_t:s0 key=(null)
type=AVC msg=audit(1477335952.649:334): avc:  denied  { execute } for  pid=9144 comm="dhcpd" path="/lib64/libnss_sss.so.2" dev="dm-0" ino=1492484 scontext=system_u:system_r:dhcpd_t:s0 tcontext=system_u:object_r:dhcpd_state_t:s0 tclass=file
----
time->Mon Oct 24 21:06:25 2016
type=SYSCALL msg=audit(1477335985.801:458): arch=c000003e syscall=9 success=no exit=-13 a0=0 a1=208470 a2=5 a3=802 items=0 ppid=9920 pid=9921 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dhcpd" exe="/usr/sbin/dhcpd" subj=system_u:system_r:dhcpd_t:s0 key=(null)
type=AVC msg=audit(1477335985.801:458): avc:  denied  { execute } for  pid=9921 comm="dhcpd" path="/lib64/libnss_sss.so.2" dev="dm-0" ino=1492484 scontext=system_u:system_r:dhcpd_t:s0 tcontext=system_u:object_r:dhcpd_state_t:s0 tclass=file
Fail: AVC messages found.
Checking for errors...
Using stronger AVC checks.
	Define empty RHTS_OPTION_STRONGER_AVC parameter if this causes any problems.
Running 'cat /mnt/testarea/tmp.rhts-db-submit-result.iuF_MH | /sbin/ausearch -m AVC -m SELINUX_ERR'
Fail: AVC messages found.
Running 'cat %s | /sbin/ausearch -m USER_AVC >/mnt/testarea/tmp.rhts-db-submit-result.RlnGKj 2>&1'
Info: No AVC messages found.
/bin/grep 'avc: ' /mnt/testarea/dmesg.log | /bin/grep --invert-match TESTOUT.log
No AVC messages found in dmesg
Running '/usr/sbin/sestatus'
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
Running 'rpm -q selinux-policy || true'
selinux-policy-3.13.1-102.el7.noarch

Comment 1 Milos Malik 2016-10-25 11:57:02 UTC
I believe this bug is a duplicate of BZ#1379352.

Comment 4 Lukas Vrabec 2016-11-14 13:58:45 UTC

*** This bug has been marked as a duplicate of bug 1379352 ***