Bug 706779

Summary: SELinux is preventing /bin/mount from 'create' accesses on the file utab.NnoVza.
Product: [Fedora] Fedora Reporter: Dave Tomlin <davetomlin>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7ac68d475ccfe5606897c336872815b6a567b09338b51a581b5deef6869ae2be
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-21 16:44:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dave Tomlin 2011-05-22 23:17:49 UTC
SELinux is preventing /bin/mount from 'create' accesses on the file utab.NnoVza.

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

If you believe that mount should be allowed create access on the utab.NnoVza 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:
# grep mount /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mount_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_run_t:s0
Target Objects                utab.NnoVza [ file ]
Source                        mount
Source Path                   /bin/mount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-2.19.1-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-24.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP Wed Mar
                              30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sun 22 May 2011 06:15:42 PM CDT
Last Seen                     Sun 22 May 2011 06:15:42 PM CDT
Local ID                      efe50694-140b-44c5-bf26-fb86e8fa9458

Raw Audit Messages
type=AVC msg=audit(1306106142.468:257): avc:  denied  { create } for  pid=1900 comm="mount" name="utab.NnoVza" scontext=system_u:system_r:mount_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1306106142.468:257): arch=x86_64 syscall=open success=no exit=EACCES a0=7fd0e2acd310 a1=c2 a2=180 a3=7fffcc5b29d0 items=0 ppid=1501 pid=1900 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=mount exe=/bin/mount subj=system_u:system_r:mount_t:s0-s0:c0.c1023 key=(null)

Hash: mount,mount_t,var_run_t,file,create

audit2allow

#============= mount_t ==============
allow mount_t var_run_t:file create;

audit2allow -R

#============= mount_t ==============
allow mount_t var_run_t:file create;

Comment 1 Miroslav Grepl 2011-05-23 08:15:37 UTC
What is your output of

# ls -dZ /var/run/mount

Comment 2 Daniel Walsh 2011-05-23 20:03:21 UTC
restorecon -R -v /var/run 

Should fix.