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 1759842

Summary: sbd lacks signull permission
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Hagara <phagara>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.8CC: cluster-qe, lvrabec, mmalik, plautrba, ssekidde, vmojzis, zpytela
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-09 11:45:56 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 Patrik Hagara 2019-10-09 09:05:36 UTC
Description of problem:

> Info: Searching AVC errors produced since 1570546638.73 (Tue Oct  8 16:57:18 2019)
> Searching logs...
> Running '/usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR -ts 10/08/2019 16:57:18 < /dev/null >/mnt/testarea/tmp.rhts-db-submit-result.dcKXY7 2>&1'
> ----
> time->Tue Oct  8 16:58:09 2019
> type=PROCTITLE msg=audit(1570546689.580:133): proctitle=7362643A20776174636865723A20506163656D616B6572
> type=SYSCALL msg=audit(1570546689.580:133): arch=c000003e syscall=62 success=no exit=-13 a0=6bf a1=0 a2=2293b047 a3=7ffd91f13fc0 items=0 ppid=1671 pid=1673 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sbd" exe="/usr/sbin/sbd" subj=system_u:system_r:sbd_t:s0 key=(null)
> type=AVC msg=audit(1570546689.580:133): avc:  denied  { signull } for  pid=1673 comm="sbd" scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:system_r:cluster_t:s0 tclass=process permissive=0
> 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.dcKXY7 | /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.NvDON9 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:      31
> Running 'rpm -q selinux-policy || true'
> selinux-policy-3.13.1-259.el7.noarch


Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-259.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. run eg. the pacemaker,recovery,RecoveryActiveNode,sbd-only,kill_reboot scenario
2.
3.

Actual results:


Expected results:


Additional info:
this permission is required to determine whether monitored processes still exist [1][2]

[1] https://github.com/ClusterLabs/sbd/blob/master/src/sbd-cluster.c#L476
[2] https://github.com/ClusterLabs/sbd/blob/master/src/sbd-inquisitor.c#L251

Comment 3 Milos Malik 2019-10-09 11:29:18 UTC
I believe this bug is a duplicate of BZ#1753623.

Comment 4 Patrik Hagara 2019-10-09 11:39:25 UTC
(In reply to Milos Malik from comment #3)
> I believe this bug is a duplicate of BZ#1753623.

Indeed, it is.

Comment 5 Lukas Vrabec 2019-10-09 11:45:56 UTC

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