Bug 727897 - SELinux is preventing /usr/bin/who from using the 'kill' capabilities.
Summary: SELinux is preventing /usr/bin/who from using the 'kill' capabilities.
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:baf6371142c...
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-03 15:02 UTC by etnomax
Modified: 2012-02-10 08:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-02-10 08:51:00 UTC

Attachments (Terms of Use)

Description etnomax 2011-08-03 15:02:17 UTC
SELinux is preventing /usr/bin/who from using the 'kill' capabilities.

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

If you believe that who should have the kill capability 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 who /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:fsdaemon_t:s0
Target Context                system_u:system_r:fsdaemon_t:s0
Target Objects                Unknown [ capability ]
Source                        who
Source Path                   /usr/bin/who
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           coreutils-8.10-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-35.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40-4.fc15.x86_64 #1 SMP Fri
                              Jul 29 18:46:53 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Ср. 03 авг. 2011 17:52:40
Last Seen                     Ср. 03 авг. 2011 17:52:40
Local ID                      17d0f3be-a068-4f45-ba47-3b242a1dfbc9

Raw Audit Messages
type=AVC msg=audit(1312383160.654:166): avc:  denied  { kill } for  pid=7448 comm="who" capability=5  scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:system_r:fsdaemon_t:s0 tclass=capability

type=SYSCALL msg=audit(1312383160.654:166): arch=x86_64 syscall=kill success=yes exit=0 a0=1040 a1=0 a2=717030 a3=8 items=0 ppid=7447 pid=7448 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=who exe=/usr/bin/who subj=system_u:system_r:fsdaemon_t:s0 key=(null)

Hash: who,fsdaemon_t,fsdaemon_t,capability,kill


#============= fsdaemon_t ==============
allow fsdaemon_t self:capability kill;

audit2allow -R

#============= fsdaemon_t ==============
allow fsdaemon_t self:capability kill;

Comment 1 Daniel Walsh 2011-08-03 17:13:23 UTC
We should add it.

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