Bug 1434526

Summary: gssproxy and httpd selinux AVC denials during ipa-server-install
Product: Red Hat Enterprise Linux 7 Reporter: Scott Poore <spoore>
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.4CC: 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: 2017-03-29 21:21:37 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 Scott Poore 2017-03-21 16:17:50 UTC
Description of problem:

During an ipa-server-install, I'm seeing some AVC denials for gssproxy and httpd that are causing failures during the upgrade portion of install.


Version-Release number of selected component (if applicable):
[root@rhel7-1 ~]# rpm -q selinux-policy
selinux-policy-3.13.1-130.el7.noarch


How reproducible:
always

Steps to Reproduce:
1.  yum -y install ipa-server-dns
2.  run ipa-server-install with dns enabled
3.  ausearch -m avc


Actual results:

ipa-server-install fails.  and ausearch shows denials.

[root@rhel7-1 ~]# ausearch -m avc
----
time->Tue Mar 21 11:01:36 2017
type=SYSCALL msg=audit(1490112096.587:206): arch=c000003e syscall=2 success=no exit=-13 a0=561972b21830 a1=0 a2=1b6 a3=24 items=0 ppid=1 pid=4110 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gssproxy" exe="/usr/sbin/gssproxy" subj=system_u:system_r:gssproxy_t:s0 key=(null)
type=AVC msg=audit(1490112096.587:206): avc:  denied  { search } for  pid=4110 comm="gssproxy" name="ipa" dev="dm-0" ino=8993581 scontext=system_u:system_r:gssproxy_t:s0 tcontext=system_u:object_r:ipa_var_lib_t:s0 tclass=dir
----
time->Tue Mar 21 11:01:36 2017
type=SYSCALL msg=audit(1490112096.587:207): arch=c000003e syscall=2 success=no exit=-13 a0=561972b21900 a1=0 a2=1b6 a3=24 items=0 ppid=1 pid=4110 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gssproxy" exe="/usr/sbin/gssproxy" subj=system_u:system_r:gssproxy_t:s0 key=(null)
type=AVC msg=audit(1490112096.587:207): avc:  denied  { search } for  pid=4110 comm="gssproxy" name="ipa" dev="dm-0" ino=8993581 scontext=system_u:system_r:gssproxy_t:s0 tcontext=system_u:object_r:ipa_var_lib_t:s0 tclass=dir
----
time->Tue Mar 21 11:01:45 2017
type=SYSCALL msg=audit(1490112105.585:217): arch=c000003e syscall=2 success=no exit=-13 a0=55d5ac90239d a1=800c1 a2=180 a3=7ffe239c0d30 items=0 ppid=1 pid=4227 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1490112105.585:217): avc:  denied  { write } for  pid=4227 comm="httpd" name="alias" dev="dm-0" ino=13373928 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir
----
time->Tue Mar 21 11:01:45 2017
type=SYSCALL msg=audit(1490112105.586:218): arch=c000003e syscall=2 success=no exit=-13 a0=55d5ac905fed a1=800c1 a2=180 a3=708 items=0 ppid=1 pid=4227 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1490112105.586:218): avc:  denied  { write } for  pid=4227 comm="httpd" name="alias" dev="dm-0" ino=13373928 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir
----
time->Tue Mar 21 11:01:45 2017
type=SYSCALL msg=audit(1490112105.687:219): arch=c000003e syscall=2 success=no exit=-13 a0=55d5ac9090bd a1=800c1 a2=180 a3=708 items=0 ppid=1 pid=4227 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1490112105.687:219): avc:  denied  { write } for  pid=4227 comm="httpd" name="alias" dev="dm-0" ino=13373928 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir
----
time->Tue Mar 21 11:01:45 2017
type=SYSCALL msg=audit(1490112105.688:220): arch=c000003e syscall=2 success=no exit=-13 a0=55d5ac90e02d a1=800c1 a2=180 a3=708 items=0 ppid=1 pid=4227 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1490112105.688:220): avc:  denied  { write } for  pid=4227 comm="httpd" name="alias" dev="dm-0" ino=13373928 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir


Expected results:

ipa-server-install succeeds with no AVC denials.

Additional info:

Comment 2 Scott Poore 2017-03-29 21:21:37 UTC
Closing this as duplicate of bug #1432115

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