Bug 653722

Summary: SELinux is preventing /sbin/killall5 from getattr access on the file /usr/libexec/nm-dispatcher.action.
Product: [Fedora] Fedora Reporter: Antonio A. Olivares <olivares14031>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c62f103adec6003345404e1a4c9c01a7419a00e66ccfccb644e7dc8d55616dba
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-16 10:10:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Antonio A. Olivares 2010-11-16 01:52:03 UTC
SELinux is preventing /sbin/killall5 from getattr access on the file /usr/libexec/nm-dispatcher.action.

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

If you want to allow killall5 to have getattr access on the nm-dispatcher.action 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 /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:NetworkManager_initrc_exec_t:s0
Target Objects                /usr/libexec/nm-dispatcher.action [ file ]
Source                        pidof
Source Path                   /sbin/killall5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sysvinit-tools-2.88-1.dsf.fc15
Target RPM Packages           NetworkManager-0.8.1-10.git20100831.fc15
Policy RPM                    selinux-policy-3.9.7-9.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 03 Nov 2010 06:22:05 PM CDT
Last Seen                     Fri 05 Nov 2010 07:04:32 AM CDT
Local ID                      65f1bc2c-940b-45ff-a425-6fedc24b7441

Raw Audit Messages
type=AVC msg=audit(1288958672.328:82): avc:  denied  { getattr } for  pid=1456 comm="pidof" path="/usr/libexec/nm-dispatcher.action" dev=dm-0 ino=43269 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:NetworkManager_initrc_exec_t:s0 tclass=file

pidof,xdm_t,NetworkManager_initrc_exec_t,file,getattr
type=SYSCALL msg=audit(1288958672.328:82): arch=x86_64 syscall=stat success=no exit=EACCES a0=7fff12eba510 a1=7fff12eb9460 a2=7fff12eb9460 a3=1 items=0 ppid=1453 pid=1456 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)
pidof,xdm_t,NetworkManager_initrc_exec_t,file,getattr

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

Comment 1 Miroslav Grepl 2010-11-16 10:10:37 UTC

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