Bug 638212

Summary: SELinux is preventing /bin/umount "unlink" access on mtab.
Product: [Fedora] Fedora Reporter: Lawrence Graves <lgraves>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7601ac5a88f9773e6d798193d1c122d930181063a73458eb2fc455ac3378d591
Fixed In Version: selinux-policy-3.9.5-10.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-05 13:07:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lawrence Graves 2010-09-28 14:08:32 UTC
Summary:

SELinux is preventing /bin/umount "unlink" access on mtab.

Detailed Description:

SELinux denied access requested by umount. It is not expected that this access
is required by umount 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                unconfined_u:object_r:etc_t:s0
Target Objects                mtab [ file ]
Source                        umount
Source Path                   /bin/umount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-ng-2.18-4.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-7.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.4-28.fc14.x86_64 #1 SMP Wed Sep 15 01:56:54
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 28 Sep 2010 07:58:47 AM MDT
Last Seen                     Tue 28 Sep 2010 07:58:47 AM MDT
Local ID                      69d8447f-1508-47c6-8443-07c5afefa900
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285682327.535:27131): avc:  denied  { unlink } for  pid=3646 comm="umount" name="mtab" dev=dm-0 ino=253638 scontext=system_u:system_r:mount_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1285682327.535:27131): arch=c000003e syscall=82 success=no exit=-13 a0=7f2260e84a0b a1=7f2260e84959 a2=7f2262244560 a3=7fff513538d0 items=0 ppid=2024 pid=3646 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="umount" exe="/bin/umount" subj=system_u:system_r:mount_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,umount,mount_t,etc_t,file,unlink
audit2allow suggests:

#============= mount_t ==============
allow mount_t etc_t:file unlink;

Comment 1 Daniel Walsh 2010-09-28 14:27:38 UTC
restorecon /etc/mtab

Will fix.  Any idea how this got mislabeled.

I will the ability for mount to remove this type of file in next release.

Fixed in selinux-policy-3.9.5-8.fc14

Comment 2 Fedora Update System 2010-10-04 19:35:39 UTC
selinux-policy-3.9.5-10.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-10.fc14

Comment 3 Fedora Update System 2010-10-05 13:05:07 UTC
selinux-policy-3.9.5-10.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.