Bug 659205 - SELinux is preventing /bin/mount "fowner" access .
Summary: SELinux is preventing /bin/mount "fowner" access .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:88f42f24105...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-02 07:34 UTC by Paul Bransford
Modified: 2010-12-13 20:12 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-16.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-13 20:12:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paul Bransford 2010-12-02 07:34:44 UTC
Summary:

SELinux is preventing /bin/mount "fowner" access .

Detailed Description:

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-s0:c0.c1023
Target Context                system_u:system_r:mount_t:s0-s0:c0.c1023
Target Objects                None [ capability ]
Source                        mount
Source Path                   /bin/mount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-ng-2.18-4.6.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-12.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 02 Dec 2010 02:32:47 AM EST
Last Seen                     Thu 02 Dec 2010 02:32:47 AM EST
Local ID                      bfd6029d-752b-415a-ab23-6ed8480f89f9
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1291275167.816:55736): avc:  denied  { fowner } for  pid=6371 comm="mount" capability=3  scontext=system_u:system_r:mount_t:s0-s0:c0.c1023 tcontext=system_u:system_r:mount_t:s0-s0:c0.c1023 tclass=capability

node=(removed) type=SYSCALL msg=audit(1291275167.816:55736): arch=c000003e syscall=280 success=no exit=-1 a0=3 a1=0 a2=7fff59dc1960 a3=0 items=0 ppid=6370 pid=6371 auid=4294967295 uid=500 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 String generated from  catchall,mount,mount_t,mount_t,capability,fowner
audit2allow suggests:

#============= mount_t ==============
allow mount_t self:capability fowner;

Comment 1 Paul Bransford 2010-12-02 07:36:28 UTC
The media was mounted through the "Places" menu.

The media is in fstab, as such:
UUID=05fb8490-3ee7-4b13-8b1b-c24bce504828 /media/X0-640GB ext3 rw,nosuid,nodev,users 0 0

The mountpoint was created as root via "mkdir /media/X0-640GB"

The media was successfully mounted despite the SELinux denial.

Comment 2 Daniel Walsh 2010-12-02 14:49:09 UTC
Since it has dac_override it should probably have this also.  You would think one implies the other.

Comment 4 Miroslav Grepl 2010-12-03 10:49:39 UTC
Fixed in selinux-policy-3.9.7-15.fc14

Comment 5 Fedora Update System 2010-12-10 13:53:53 UTC
selinux-policy-3.9.7-16.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-16.fc14

Comment 6 Fedora Update System 2010-12-10 20:28:21 UTC
selinux-policy-3.9.7-16.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-16.fc14

Comment 7 Fedora Update System 2010-12-13 20:11:02 UTC
selinux-policy-3.9.7-16.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.