Bug 449719 - SELinux prevented umount from mounting on the file or directory "/media/.hal-mtab-lock" (type "mnt_t").
Summary: SELinux prevented umount from mounting on the file or directory "/media/.hal-...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-03 04:16 UTC by Rodd Clarkson
Modified: 2008-06-05 18:29 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-06-05 18:29:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rodd Clarkson 2008-06-03 04:16:30 UTC
Summary:

SELinux prevented umount from mounting on the file or directory
"/media/.hal-mtab-lock" (type "mnt_t").

Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

SELinux prevented umount from mounting a filesystem on the file or directory
"/media/.hal-mtab-lock" of type "mnt_t". By default SELinux limits the mounting
of filesystems to only some files or directories (those with types that have the
mountpoint attribute). The type "mnt_t" does not have this attribute. You can
either relabel the file or directory or set the boolean "allow_mount_anyfile" to
true to allow mounting on any file or directory.

Allowing Access:

Changing the "allow_mount_anyfile" boolean to true will allow this access:
"setsebool -P allow_mount_anyfile=1."

Fix Command:

setsebool -P allow_mount_anyfile=1

Additional Information:

Source Context                system_u:system_r:mount_t:s0
Target Context                system_u:object_r:mnt_t:s0
Target Objects                /media/.hal-mtab-lock [ file ]
Source                        umount
Source Path                   /bin/umount
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           util-linux-ng-2.13.1-6.fc9
Target RPM Packages           
Policy RPM                    selinux-policy-3.3.1-59.fc9
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   allow_mount_anyfile
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 2.6.25.4-30.fc9.i686
                              #1 SMP Wed May 21 18:12:35 EDT 2008 i686 i686
Alert Count                   15
First Seen                    Fri 30 May 2008 05:30:00 PM EST
Last Seen                     Tue 03 Jun 2008 02:13:40 PM EST
Local ID                      ee49ad20-5549-4187-a53d-795017e9b3ff
Line Numbers                  

Raw Audit Messages            

host=localhost.localdomain type=AVC msg=audit(1212466420.577:148): avc:  denied
 { write } for  pid=30217 comm="umount" path="/media/.hal-mtab-lock" dev=sda5
ino=625809 scontext=system_u:system_r:mount_t:s0
tcontext=system_u:object_r:mnt_t:s0 tclass=file

host=localhost.localdomain type=SYSCALL msg=audit(1212466420.577:148):
arch=40000003 syscall=11 success=yes exit=0 a0=804b14d a1=bff7cd90 a2=bff7d30c
a3=804b14d items=0 ppid=30214 pid=30217 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 key=(null)

Comment 1 Rodd Clarkson 2008-06-03 04:18:41 UTC
Not sure this is relevant, but each time I resume my laptop, the two inserted
media (a sd card (2GB) and a DVD) pop up dialogs asking what I would like to do
with them.

Since I've only suspended and resumed, I don't want to be advised that they have
remounted and don't think I should see either of these helper dialogs.

If this has nothing to do with this bug, then I'll file a separate report.


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