Bug 695169 - SELinux is preventing /usr/bin/killall from 'getattr' accesses on the file /usr/libexec/udisks-daemon.
Summary: SELinux is preventing /usr/bin/killall from 'getattr' accesses on the file /u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:b8c04624b31...
: 695170 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-11 02:13 UTC by Rahul Sundaram
Modified: 2011-04-11 06:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-11 06:50:40 UTC
Type: ---


Attachments (Terms of Use)

Description Rahul Sundaram 2011-04-11 02:13:43 UTC
SELinux is preventing /usr/bin/killall from 'getattr' accesses on the file /usr/libexec/udisks-daemon.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that killall should be allowed getattr access on the udisks-daemon file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep killall /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:devicekit_disk_exec_t:s0
Target Objects                /usr/libexec/udisks-daemon [ file ]
Source                        killall
Source Path                   /usr/bin/killall
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           psmisc-22.13-8.fc15
Target RPM Packages           udisks-1.0.1-8.fc15
Policy RPM                    selinux-policy-3.9.16-10.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP
                              Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   5
First Seen                    Wed 06 Apr 2011 03:43:42 PM IST
Last Seen                     Wed 06 Apr 2011 04:14:38 PM IST
Local ID                      ab2e8e3d-8f66-41f3-a578-a6d92d607f5d

Raw Audit Messages
type=AVC msg=audit(1302086678.944:3184): avc:  denied  { getattr } for  pid=6966 comm="killall" path="/usr/libexec/udisks-daemon" dev=dm-1 ino=51557 scontext=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:devicekit_disk_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1302086678.944:3184): arch=x86_64 syscall=stat success=yes exit=0 a0=17294e0 a1=7fffb2cb2eb0 a2=7fffb2cb2eb0 a3=0 items=0 ppid=6965 pid=6966 auid=501 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=killall exe=/usr/bin/killall subj=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 key=(null)

Hash: killall,mock_t,devicekit_disk_exec_t,file,getattr

audit2allow

#============= mock_t ==============
allow mock_t devicekit_disk_exec_t:file getattr;

audit2allow -R

#============= mock_t ==============
allow mock_t devicekit_disk_exec_t:file getattr;

Comment 1 Miroslav Grepl 2011-04-11 06:50:40 UTC
Fixed in selinux-policy-3.9.16-13.fc15

Comment 2 Miroslav Grepl 2011-04-11 06:50:56 UTC
*** Bug 695170 has been marked as a duplicate of this bug. ***


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