Bug 1592025

Summary: SELinux is preventing /usr/sbin/mount.nfs from map access on the file /usr/bin/umount
Product: Red Hat Enterprise Linux 7 Reporter: Lukas Slebodnik <lslebodn>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: kunwan, lvrabec, mgrepl, mmalik, plautrba, ssekidde, xzhou, yoyang
Target Milestone: rcKeywords: TestBlocker
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-205.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:05:18 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 Lukas Slebodnik 2018-06-16 10:02:19 UTC
SELinux is preventing /usr/sbin/mount.nfs from map access on the file /usr/bin/umount.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that mount.nfs should be allowed map access on the umount file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'mount.nfs' --raw | audit2allow -M my-mountnfs
# semodule -i my-mountnfs.pp


Additional Information:
Source Context                system_u:system_r:automount_t:s0
Target Context                system_u:object_r:mount_exec_t:s0
Target Objects                /usr/bin/umount [ file ]
Source                        mount.nfs
Source Path                   /usr/sbin/mount.nfs
Port                          <Unknown>
Host                          host.testrelm.test
Source RPM Packages           util-linux-2.23.2-57.el7.x86_64
Target RPM Packages           util-linux-2.23.2-57.el7.x86_64
Policy RPM                    selinux-policy-3.13.1-204.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     host.testrelm.test
Platform                      Linux host.testrelm.test 3.10.0-905.el7.x86_64 #1
                              SMP Wed Jun 13 13:48:50 EDT 2018 x86_64 x86_64
Alert Count                   145
First Seen                    2018-06-16 05:00:36 EDT
Last Seen                     2018-06-16 05:01:38 EDT
Local ID                      a14fd70b-4989-47ca-8b30-291c5e54d2d6

Raw Audit Messages
type=AVC msg=audit(1529139698.834:640): avc:  denied  { map } for  pid=47066 comm="umount" path="/usr/bin/umount" dev="dm-0" ino=256866 scontext=system_u:system_r:automount_t:s0 tcontext=system_u:object_r:mount_exec_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1529139698.834:640): arch=x86_64 syscall=execve success=no exit=EACCES a0=7fff46843440 a1=7fff468433d0 a2=55be1f738760 a3=8 items=2 ppid=46615 pid=47066 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=umount exe=/usr/bin/umount subj=system_u:system_r:automount_t:s0 key=(null)

type=CWD msg=audit(1529139698.834:640): cwd=/

type=PATH msg=audit(1529139698.834:640): item=0 name=/usr/bin/umount inode=256866 dev=fd:00 mode=0104755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:mount_exec_t:s0 objtype=NORMAL cap_fp=0000000000000000 cap_fi=0000000000000000 cap_fe=0 cap_fver=0

type=PATH msg=audit(1529139698.834:640): item=1 name=/lib64/ld-linux-x86-64.so.2 inode=33612526 dev=fd:00 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:ld_so_t:s0 objtype=NORMAL cap_fp=0000000000000000 cap_fi=0000000000000000 cap_fe=0 cap_fver=0

Hash: mount.nfs,automount_t,mount_exec_t,file,map

Comment 6 errata-xmlrpc 2018-10-30 10:05:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3111