Bug 706779 - SELinux is preventing /bin/mount from 'create' accesses on the file utab.NnoVza.
Summary: SELinux is preventing /bin/mount from 'create' accesses on the file utab.NnoVza.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7ac68d475cc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-22 23:17 UTC by Dave Tomlin
Modified: 2011-11-21 16:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-21 16:44:53 UTC
Type: ---


Attachments (Terms of Use)

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.


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