Bug 574346 - SELinux is preventing /usr/libexec/udisks-daemon "rmdir" access on boot.
Summary: SELinux is preventing /usr/libexec/udisks-daemon "rmdir" access on boot.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:8bfe78fd5d1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-17 10:17 UTC by Mostafa Daneshvar
Modified: 2010-03-24 00:49 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.15-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-24 00:49:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mostafa Daneshvar 2010-03-17 10:17:12 UTC
Summary:

SELinux is preventing /usr/libexec/udisks-daemon "rmdir" access on boot.

Detailed Description:

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

SELinux denied access requested by udisks-daemon. It is not expected that this
access is required by udisks-daemon 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:devicekit_disk_t:s0-s0:c0.c1023
Target Context                system_u:object_r:boot_t:s0
Target Objects                boot [ dir ]
Source                        udisks-daemon
Source Path                   /usr/libexec/udisks-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           udisks-1.0.0-0.git20100223.1.fc13
Target RPM Packages           filesystem-2.4.31-1.fc13
Policy RPM                    selinux-policy-3.7.10-3.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux localhost.localdomain
                              2.6.33-0.52.rc8.git6.fc13.i686 #1 SMP Tue Feb 23
                              05:11:28 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Wed 17 Mar 2010 01:38:45 PM IRST
Last Seen                     Wed 17 Mar 2010 01:38:45 PM IRST
Local ID                      d00a92bc-3807-428d-9531-b4ae9ac5e9bc
Line Numbers                  

Raw Audit Messages            

node=localhost.localdomain type=AVC msg=audit(1268820525.514:23269): avc:  denied  { rmdir } for  pid=3321 comm="udisks-daemon" name="boot" dev=dm-0 ino=90646 scontext=system_u:system_r:devicekit_disk_t:s0-s0:c0.c1023 tcontext=system_u:object_r:boot_t:s0 tclass=dir

node=localhost.localdomain type=SYSCALL msg=audit(1268820525.514:23269): arch=40000003 syscall=40 success=yes exit=0 a0=86969e8 a1=4ff398 a2=e8a430 a3=0 items=0 ppid=1 pid=3321 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="udisks-daemon" exe="/usr/libexec/udisks-daemon" subj=system_u:system_r:devicekit_disk_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,udisks-daemon,devicekit_disk_t,boot_t,dir,rmdir
audit2allow suggests:

#============= devicekit_disk_t ==============
allow devicekit_disk_t boot_t:dir rmdir;

Comment 1 Daniel Walsh 2010-03-17 12:59:27 UTC
You can add these rules for now using

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

Fixed in selinux-policy-3.7.14-5.fc13.noarch

Comment 2 Fedora Update System 2010-03-18 17:25:16 UTC
selinux-policy-3.7.15-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 3 Fedora Update System 2010-03-23 02:18:20 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 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: http://admin.fedoraproject.org/updates/selinux-policy-3.7.15-1.fc13

Comment 4 Fedora Update System 2010-03-24 00:49:21 UTC
selinux-policy-3.7.15-1.fc13 has been pushed to the Fedora 13 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.