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 - Selinux prevents nmbd to call: block_suspend
Summary: Selinux prevents nmbd to call: block_suspend
Keywords:
Status: CLOSED DUPLICATE of bug 1425357
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-05 12:52 UTC by Robin Hack
Modified: 2017-06-06 09:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-05 14:46:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.