Bug 672041 - SELinux is preventing /bin/mount from 'add_name' accesses on the directory .mount.
Summary: SELinux is preventing /bin/mount from 'add_name' accesses on the directory .m...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7703320f5da...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-23 13:09 UTC by Hicham HAOUARI
Modified: 2011-01-24 16:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-24 16:27:04 UTC
Type: ---


Attachments (Terms of Use)

Description Hicham HAOUARI 2011-01-23 13:09:57 UTC
SELinux is preventing /bin/mount from 'add_name' accesses on the directory .mount.

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

If you believe that mount should be allowed add_name access on the .mount directory 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:device_t:s0
Target Objects                .mount [ dir ]
Source                        mount
Source Path                   /bin/mount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-2.19-0.2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.13-3.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.i686 #1 SMP Fri
                              Jan 7 15:46:20 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Fri 21 Jan 2011 09:57:13 PM WET
Last Seen                     Sun 23 Jan 2011 12:48:03 PM WET
Local ID                      76b6d56c-a545-49c0-b727-dea34ba04bcd

Raw Audit Messages
type=AVC msg=audit(1295786883.525:61): avc:  denied  { add_name } for  pid=1176 comm="mount" name=".mount" scontext=system_u:system_r:mount_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=dir


type=SYSCALL msg=audit(1295786883.525:61): arch=i386 syscall=mkdir success=no exit=EACCES a0=20ce9298 a1=1ed a2=612ae4 a3=60c40c items=0 ppid=992 pid=1176 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,device_t,dir,add_name

audit2allow

#============= mount_t ==============
allow mount_t device_t:dir add_name;

audit2allow -R

#============= mount_t ==============
allow mount_t device_t:dir add_name;

Comment 1 Daniel Walsh 2011-01-24 16:27:04 UTC
Fixed in selinux-policy-3.9.13-4.fc15.noarch


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