Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1465185

Summary: REBUILD: mvapich2-2.2-1.el7.src.rpm for ppc64le-selinux Returning: FAIL
Product: Red Hat Enterprise Linux 7 Reporter: zguo <zguo>
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: honli, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde, zguo
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-06-27 10:57:10 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 zguo 2017-06-26 23:46:58 UTC
Description of problem:

 Running: /usr/sbin/ausearch  -sv no -m AVC -ts  06/26/2017 07:54:23 
SELinux Check: FAIL
SELinux AVC messages found:
----
time->Mon Jun 26 08:49:32 2017
type=SYSCALL msg=audit(1498481372.694:215393): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=10014324f08 a2=84800 a3=0 items=0 ppid=6727 pid=6765 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7897 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1498481372.694:215393): avc:  denied  { dac_read_search } for  pid=6765 comm="certwatch" capability=2  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
type=AVC msg=audit(1498481372.694:215393): avc:  denied  { dac_override } for  pid=6765 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
----
time->Mon Jun 26 08:49:32 2017
type=SYSCALL msg=audit(1498481372.704:215394): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=10014324ec8 a2=84800 a3=0 items=0 ppid=6727 pid=6765 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7897 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1498481372.704:215394): avc:  denied  { dac_read_search } for  pid=6765 comm="certwatch" capability=2  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
type=AVC msg=audit(1498481372.704:215394): avc:  denied  { dac_override } for  pid=6765 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
----
time->Mon Jun 26 08:49:32 2017
type=SYSCALL msg=audit(1498481372.884:215395): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=10032564a78 a2=84800 a3=0 items=0 ppid=6727 pid=6788 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7897 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1498481372.884:215395): avc:  denied  { dac_read_search } for  pid=6788 comm="certwatch" capability=2  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
type=AVC msg=audit(1498481372.884:215395): avc:  denied  { dac_override } for  pid=6788 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
----
time->Mon Jun 26 08:49:32 2017
type=SYSCALL msg=audit(1498481372.884:215396): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=10032564a38 a2=84800 a3=0 items=0 ppid=6727 pid=6788 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7897 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1498481372.884:215396): avc:  denied  { dac_read_search } for  pid=6788 comm="certwatch" capability=2  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
type=AVC msg=audit(1498481372.884:215396): avc:  denied  { dac_override } for  pid=6788 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
----
time->Mon Jun 26 08:49:33 2017
type=SYSCALL msg=audit(1498481373.034:215397): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=10039b09068 a2=84800 a3=0 items=0 ppid=6727 pid=6790 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7897 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1498481373.034:215397): avc:  denied  { dac_read_search } for  pid=6790 comm="certwatch" capability=2  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
type=AVC msg=audit(1498481373.034:215397): avc:  denied  { dac_override } for  pid=6790 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
----
time->Mon Jun 26 08:49:33 2017
type=SYSCALL msg=audit(1498481373.034:215398): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=10039b09028 a2=84800 a3=0 items=0 ppid=6727 pid=6790 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7897 comm="certwatch" exe="/usr/bin/certwatch" subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1498481373.034:215398): avc:  denied  { dac_read_search } for  pid=6790 comm="certwatch" capability=2  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
type=AVC msg=audit(1498481373.034:215398): avc:  denied  { dac_override } for  pid=6790 comm="certwatch" capability=1  scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tclass=capability
TPSHINT: It is possible that other stable systems activity has caused this issue.
If you are sure that this is the case, you may waive this failure.
If you have any doubts, RE-RUN tps-srpmtest to be sure.
TPSRESULT: REBUILD: mvapich2-2.2-1.el7.src.rpm for ppc64le-selinux Returning: FAIL

Version-Release number of selected component (if applicable):
.qa.[root@ibm-p8-kvm-lt-guest-07 tps]# rpm -qa| grep selinux
selinux-policy-minimum-3.13.1-164.el7.noarch
pcp-selinux-3.11.8-3.el7.ppc64le
libselinux-python-2.5-6.el7.ppc64le
selinux-policy-devel-3.13.1-164.el7.noarch
selinux-policy-doc-3.13.1-164.el7.noarch
libselinux-utils-2.5-6.el7.ppc64le
selinux-policy-mls-3.13.1-164.el7.noarch
libselinux-devel-2.5-6.el7.ppc64le
libselinux-ruby-2.5-6.el7.ppc64le
pcp-selinux-3.11.8-7.el7.ppc64le
libselinux-debuginfo-2.5-6.el7.ppc64le
selinux-policy-targeted-3.13.1-164.el7.noarch
libselinux-2.5-6.el7.ppc64le
libselinux-static-2.5-6.el7.ppc64le
selinux-policy-3.13.1-164.el7.noarch
selinux-policy-sandbox-3.13.1-164.el7.noarch
.qa.[root@ibm-p8-kvm-lt-guest-07 tps]# hostname
ibm-p8-kvm-lt-guest-07.rhts.eng.bos.redhat.com


How reproducible:
Always on ppc64le system.

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
REBUILD: mvapich2-2.2-1.el7.src.rpm for ppc64le(not ppc64le-selinux) passed.

Comment 2 Honggang LI 2017-06-27 01:14:42 UTC
(In reply to zguo from comment #0)

> TPSRESULT: REBUILD: mvapich2-2.2-1.el7.src.rpm for ppc64le-selinux
  ^^^^^^^^^^

This string means the rpm rebuilding task was running over an Errata stable system. However, as I know the Errata stable is a sharing resource. QE contacts of Errata tasks will try to "fix" the Errata system to make sure their TPS tasks passed. That means the stable system may not in sanity healthy. The selinux failure may be introduced by someone else to resolve their issue.

You need install a fresh RHEL-7.4 on a ppc64le machine. Then you should tests to confirm this issue:

1) build mvapich2-2.2-1.el7.src.rpm with rpmbuild
2) build mvapich2-2.2-1.el7.src.rpm with mock

Comment 3 Milos Malik 2017-06-27 06:29:59 UTC
I believe this bug is a duplicate of BZ#1422000. The certwatch tool is executed from cron and it has no relation to any TPS jobs.

Comment 4 Lukas Vrabec 2017-06-27 10:57:10 UTC

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

Comment 5 zguo 2017-06-28 03:31:45 UTC
(In reply to Honggang LI from comment #2)
> (In reply to zguo from comment #0)
> 
> > TPSRESULT: REBUILD: mvapich2-2.2-1.el7.src.rpm for ppc64le-selinux
>   ^^^^^^^^^^
> 
> This string means the rpm rebuilding task was running over an Errata stable
> system. However, as I know the Errata stable is a sharing resource. QE
> contacts of Errata tasks will try to "fix" the Errata system to make sure
> their TPS tasks passed. That means the stable system may not in sanity
> healthy. The selinux failure may be introduced by someone else to resolve
> their issue.
> 
> You need install a fresh RHEL-7.4 on a ppc64le machine. Then you should
> tests to confirm this issue:
> 
> 1) build mvapich2-2.2-1.el7.src.rpm with rpmbuild
Succeeded.
> 2) build mvapich2-2.2-1.el7.src.rpm with mock
Could not set up mock running env successfully. 
$ mock --rebuild  mvapich2-2.2-1.el7.src.rpm

......

Downloading packages:
warning: /var/lib/mock/epel-7-ppc64le/root/var/cache/yum/base/packages/perl-HTTP-Tiny-0.033-3.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Retrieving key from file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7


GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7"

Comment 6 Honggang LI 2017-06-28 06:01:32 UTC
(In reply to zguo from comment #5)

> > 1) build mvapich2-2.2-1.el7.src.rpm with rpmbuild
> Succeeded.
> > 2) build mvapich2-2.2-1.el7.src.rpm with mock
> Could not set up mock running env successfully. 
> $ mock --rebuild  mvapich2-2.2-1.el7.src.rpm
> 
> ......
> 
> Downloading packages:
> warning:
> /var/lib/mock/epel-7-ppc64le/root/var/cache/yum/base/packages/perl-HTTP-Tiny-
> 0.033-3.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5:
> NOKEY
> Retrieving key from
> file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7
> 
> 
> GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file
> /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-7"

This confirmed that mvapich2 building failure is nothing to do with the selinux bug. We can ignore mock failure as the configuration is different from our internal building system.