Bug 653126 - SELinux is preventing /sbin/killall5 from getattr access on the file /usr/sbin/anacron.
Summary: SELinux is preventing /sbin/killall5 from getattr access on the file /usr/sbi...
Status: CLOSED DUPLICATE of bug 653108
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:4790a9aebbc...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-11-14 15:51 UTC by Tom
Modified: 2010-11-15 08:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-11-15 08:49:31 UTC
Type: ---

Attachments (Terms of Use)

Description Tom 2010-11-14 15:51:45 UTC
SELinux is preventing /sbin/killall5 from getattr access on the file /usr/sbin/anacron.

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

If you want to allow killall5 to have getattr access on the anacron 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 /sbin/killall5 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:anacron_exec_t:s0
Target Objects                /usr/sbin/anacron [ file ]
Source                        pidof
Source Path                   /sbin/killall5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sysvinit-tools-2.88-1.dsf.fc15
Target RPM Packages           cronie-anacron-1.4.6-1.fc15
Policy RPM                    selinux-policy-3.9.8-4.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.36-1.fc15.i686.PAE #1 SMP Thu
                              Oct 21 04:31:09 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Sun 14 Nov 2010 09:51:33 AM EST
Last Seen                     Sun 14 Nov 2010 09:51:33 AM EST
Local ID                      61f89a6c-3174-44fa-a119-c58405ad0ee2

Raw Audit Messages
type=AVC msg=audit(1289746293.561:3925): avc:  denied  { getattr } for  pid=13170 comm="pidof" path="/usr/sbin/anacron" dev=dm-1 ino=2135611 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:anacron_exec_t:s0 tclass=file

type=SYSCALL msg=audit(1289746293.561:3925): arch=i386 syscall=stat64 success=no exit=EACCES a0=bfe03dbb a1=bfe02cac a2=4d14fff4 a3=3 items=0 ppid=13167 pid=13170 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pidof exe=/sbin/killall5 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

#============= xdm_t ==============
allow xdm_t anacron_exec_t:file getattr;

Comment 1 Miroslav Grepl 2010-11-15 08:49:31 UTC

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

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