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 1458777

Summary: Selinux prevents nmbd to call: block_suspend
Product: Red Hat Enterprise Linux 7 Reporter: Robin Hack <rhack>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
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: 2017-06-05 14:46:52 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 Robin Hack 2017-06-05 12:52:00 UTC
Description of problem:
Hello. During usual winbind testing I found that nmbd raises AVCs.

Version-Release number of selected component (if applicable):


How reproducible:
always

Actual results:
Info: Searching AVC errors produced since 1496666471.41 (Mon Jun  5 08:41:11 2017)
Searching logs...
Running '/usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR -ts 06/05/2017 08:41:11 < /dev/null >/mnt/testarea/tmp.rhts-db-submit-result.pZHqL5 2>&1'
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5936): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=15 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5936): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5937): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=14 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5937): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5938): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=13 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5938): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5939): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=12 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5939): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5940): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=11 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5940): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5941): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=10 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5941): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5942): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=15 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5942): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5943): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=14 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5943): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5944): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=13 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5944): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5945): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=12 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5945): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5946): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=11 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5946): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5947): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=10 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5947): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5948): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=15 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5948): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----
time->Mon Jun  5 08:41:14 2017
type=SYSCALL msg=audit(1496666474.191:5949): arch=c000003e syscall=233 success=yes exit=0 a0=4 a1=2 a2=14 a3=7fff02369240 items=0 ppid=1 pid=4720 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="nmbd" exe="/usr/sbin/nmbd" subj=system_u:system_r:nmbd_t:s0 key=(null)
type=AVC msg=audit(1496666474.191:5949): avc:  denied  { block_suspend } for  pid=4720 comm="nmbd" capability=36  scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:system_r:nmbd_t:s0 tclass=capability2
----

Expected results:
Something beatiful :).

Additional info:

Comment 2 Milos Malik 2017-06-05 13:59:11 UTC
I believe this bug is a duplicate of BZ#1425357.

Comment 3 Lukas Vrabec 2017-06-05 14:46:52 UTC

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