Bug 1075153

Summary: avc denial message on ipa replica installation on RHEL-70 machine from a RHEL-65 based IPA master
Product: Red Hat Enterprise Linux 7 Reporter: Kaleem <ksiddiqu>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mkosek, mmalik, nkinder, nsoman, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-20 09:19:06 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 Kaleem 2014-03-11 15:18:09 UTC
Description of problem:
Following avc denial message shown on replica on RHEL-70 machine and replica file is generated from a RHEL-65 master 

----
time->Tue Mar 11 07:22:03 2014
type=SYSCALL msg=audit(1394536923.905:214): arch=c000003e syscall=2 success=no exit=-13 a0=7f3003cfad18 a1=0 a2=1b6 a3=7f300901270c items=0 ppid=1 pid=29219 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="java" exe="/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51-2.4.5.1.el7.x86_64/jre-abrt/bin/java" subj=system_u:system_r:pki_tomcat_t:s0 key=(null)
type=AVC msg=audit(1394536923.905:214): avc:  denied  { read } for  pid=29219 comm="java" name="ip_local_port_range" dev="proc" ino=83955 scontext=system_u:system_r:pki_tomcat_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file
type=AVC msg=audit(1394536923.905:214): avc:  denied  { net_admin } for  pid=29219 comm="java" capability=12  scontext=system_u:system_r:pki_tomcat_t:s0 tcontext=system_u:system_r:pki_tomcat_t:s0 tclass=capability
type=AVC msg=audit(1394536923.905:214): avc:  denied  { net_admin } for  pid=29219 comm="java" capability=12  scontext=system_u:system_r:pki_tomcat_t:s0 tcontext=system_u:system_r:pki_tomcat_t:s0 tclass=capability
----

Version-Release number of selected component (if applicable):
[root@rhel70-replica ~]# rpm -q ipa-server pki-ca 389-ds-base
ipa-server-3.3.3-21.el7.x86_64
pki-ca-10.0.5-3.el7.noarch
389-ds-base-1.3.1.6-22.el7.x86_64
[root@rhel70-replica ~]# 

How reproducible:
Always

Steps to Reproduce:
1. Install Master on RHEL-6.5 
2. Install Replica on RHEL-7.0 from RHEL-6.5 based Master

Actual results:
avc denial message shown.

Expected results:
avc denial message should not be shown.

Additional info:
(1)Beaker job where avc seen
   -https://beaker.engineering.redhat.com/jobs/609234

(2)On compose RHEL-7.0-20140110.0, it was not seen. beaker job 
  - https://beaker.engineering.redhat.com/jobs/573918

Comment 2 Nathan Kinder 2014-03-11 15:53:21 UTC
Do these AVC actually cause a failure, or does replica creation work despite the AVC messages?

Comment 3 Namita Soman 2014-03-11 16:44:33 UTC
The replica is installed, and can be used - despite the AVCs.

Comment 4 Namita Soman 2014-03-11 16:59:17 UTC
But yes - same replica is used when seeing the issue reported in bz1075118

Comment 5 Miroslav Grepl 2014-03-12 12:18:23 UTC
type=AVC msg=audit(1394536923.905:214): avc:  denied  { net_admin } for  pid=29219 comm="java" capability=12  scontext=system_u:system_r:pki_tomcat_t:s0 tcontext=system_u:system_r:pki_tomcat_t:s0 tclass=capability

should be dontaudited in this case.

Comment 6 Miroslav Grepl 2014-03-20 09:19:06 UTC

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