Bug 651644 - SELinux is preventing /bin/mount "read" access on sdc1.
Summary: SELinux is preventing /bin/mount "read" access on sdc1.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:45a20be258f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-10 00:23 UTC by mdeggers
Modified: 2010-11-21 21:59 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-12.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-21 21:59:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description mdeggers 2010-11-10 00:23:00 UTC
Summary:

SELinux is preventing /bin/mount "read" access on sdc1.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by mount. It is not expected that this access is
required by mount and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:mount_t:s0
Target Context                system_u:object_r:removable_t:s0
Target Objects                sdc1 [ blk_file ]
Source                        mount
Source Path                   /bin/mount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-ng-2.18-4.4.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-7.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-48.fc14.i686
                              #1 SMP Fri Oct 22 15:34:36 UTC 2010 i686 i686
Alert Count                   4
First Seen                    Sat 06 Nov 2010 10:12:52 AM PDT
Last Seen                     Sat 06 Nov 2010 10:12:56 AM PDT
Local ID                      e9eb57e1-7bca-410f-83a4-ff146db1a807
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289063576.292:88): avc:  denied  { read } for  pid=8577 comm="mount" name="sdc1" dev=devtmpfs ino=138354 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:removable_t:s0 tclass=blk_file

node=(removed) type=AVC msg=audit(1289063576.292:88): avc:  denied  { open } for  pid=8577 comm="mount" name="sdc1" dev=devtmpfs ino=138354 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:removable_t:s0 tclass=blk_file

node=(removed) type=SYSCALL msg=audit(1289063576.292:88): arch=40000003 syscall=5 success=yes exit=3 a0=d9ac50 a1=8800 a2=0 a3=ffffffff items=0 ppid=8576 pid=8577 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 key=(null)



Hash String generated from  catchall,mount,mount_t,removable_t,blk_file,read
audit2allow suggests:

#============= mount_t ==============
allow mount_t removable_t:blk_file { read open };

Comment 1 mdeggers 2010-11-10 00:25:28 UTC
This occurs when I mount and unmount an iPod Nano in KDE.

Comment 2 Miroslav Grepl 2010-11-10 12:22:44 UTC
You can allow it for now using

# grep mount_t /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Comment 3 Miroslav Grepl 2010-11-15 13:07:19 UTC
Fixed in selinux-policy-3.9.7-12.fc14

Comment 4 Fedora Update System 2010-11-19 13:21:12 UTC
selinux-policy-3.9.7-12.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 5 Fedora Update System 2010-11-19 22:39:26 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 6 Fedora Update System 2010-11-21 21:57:46 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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