Bug 821843 - SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /lib/udev/udisks-part-id.
Summary: SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /lib/...
Status: CLOSED DUPLICATE of bug 821810
Alias: None
Product: Fedora
Classification: Fedora
Component: deltacloud-core
Version: 16
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Michal Fojtik
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:88d4c909a13c9db8e79d8985dde...
Depends On:
TreeView+ depends on / blocked
Reported: 2012-05-15 14:50 UTC by al morris
Modified: 2012-05-16 04:18 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-05-16 04:18:22 UTC

Attachments (Terms of Use)

Description al morris 2012-05-15 14:50:28 UTC
libreport version: 2.0.8
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.5-2.fc16.x86_64
reason:         SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /lib/udev/udisks-part-id.
time:           Tue 15 May 2012 09:50:17 AM CDT

:SELinux is preventing /usr/bin/ruby from 'getattr' accesses on the file /lib/udev/udisks-part-id.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that ruby should be allowed getattr access on the udisks-part-id file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:allow this access for now by executing:
:# grep deltacloudd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                system_u:system_r:deltacloudd_t:s0
:Target Context                system_u:object_r:devicekit_disk_exec_t:s0
:Target Objects                /lib/udev/udisks-part-id [ file ]
:Source                        deltacloudd
:Source Path                   /usr/bin/ruby
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           ruby-
:Target RPM Packages           udisks-1.0.4-3.fc16.x86_64
:Policy RPM                    selinux-policy-3.10.0-84.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.5-2.fc16.x86_64 #1 SMP Tue May 8
:                              11:24:50 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Tue 15 May 2012 04:33:27 PM CDT
:Last Seen                     Tue 15 May 2012 04:33:27 PM CDT
:Local ID                      3ef35e33-723f-4e2f-a5ce-ad36356b30e4
:Raw Audit Messages
:type=AVC msg=audit(1337117607.183:104): avc:  denied  { getattr } for  pid=1159 comm="deltacloudd" path="/lib/udev/udisks-part-id" dev="sda3" ino=394029 scontext=system_u:system_r:deltacloudd_t:s0 tcontext=system_u:object_r:devicekit_disk_exec_t:s0 tclass=file
:type=SYSCALL msg=audit(1337117607.183:104): arch=x86_64 syscall=lstat success=yes exit=0 a0=1dde7e0 a1=7fff77f4e520 a2=7fff77f4e520 a3=1 items=0 ppid=1108 pid=1159 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=deltacloudd exe=/usr/bin/ruby subj=system_u:system_r:deltacloudd_t:s0 key=(null)
:Hash: deltacloudd,deltacloudd_t,devicekit_disk_exec_t,file,getattr
:#============= deltacloudd_t ==============
:allow deltacloudd_t devicekit_disk_exec_t:file getattr;
:audit2allow -R
:#============= deltacloudd_t ==============
:allow deltacloudd_t devicekit_disk_exec_t:file getattr;

Comment 1 Daniel Walsh 2012-05-16 03:43:22 UTC
Is deltacloudd just statting executables under udev?

Comment 2 Daniel Walsh 2012-05-16 04:18:22 UTC

*** This bug has been marked as a duplicate of bug 821810 ***

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