Bug 801091 - SELinux is preventing /bin/loadkeys from using the 'sys_admin' capabilities.
Summary: SELinux is preventing /bin/loadkeys from using the 'sys_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 786761
Alias: None
Product: Fedora
Classification: Fedora
Component: kbd
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aa6e3b28837270289a74b7062f3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-07 16:31 UTC by j.maurie
Modified: 2012-03-08 10:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-08 10:03:40 UTC
Type: ---


Attachments (Terms of Use)

Description j.maurie 2012-03-07 16:31:30 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.i686
reason:         SELinux is preventing /bin/loadkeys from using the 'sys_admin' capabilities.
time:           mer. 07 mars 2012 16:58:12 CET

description:
:SELinux is preventing /bin/loadkeys from using the 'sys_admin' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that loadkeys should have the sys_admin capability 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 loadkeys /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:loadkeys_t:s0
:Target Context                system_u:system_r:loadkeys_t:s0
:Target Objects                 [ capability ]
:Source                        loadkeys
:Source Path                   /bin/loadkeys
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           kbd-1.15.2-3.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1
:                              21:00:16 UTC 2011 i686 i686
:Alert Count                   3
:First Seen                    mer. 07 mars 2012 16:53:58 CET
:Last Seen                     mer. 07 mars 2012 16:53:58 CET
:Local ID                      33984ff4-8a84-4408-8e40-03165973db72
:
:Raw Audit Messages
:type=AVC msg=audit(1331135638.902:86): avc:  denied  { sys_admin } for  pid=5154 comm="loadkeys" capability=21  scontext=system_u:system_r:loadkeys_t:s0 tcontext=system_u:system_r:loadkeys_t:s0 tclass=capability
:
:
:type=SYSCALL msg=audit(1331135638.902:86): arch=i386 syscall=ioctl success=no exit=EPERM a0=7 a1=4b47 a2=bf9c7b7c a3=c items=0 ppid=5153 pid=5154 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=loadkeys exe=/bin/loadkeys subj=system_u:system_r:loadkeys_t:s0 key=(null)
:
:Hash: loadkeys,loadkeys_t,loadkeys_t,capability,sys_admin
:
:audit2allow
:
:#============= loadkeys_t ==============
:allow loadkeys_t self:capability sys_admin;
:
:audit2allow -R
:
:#============= loadkeys_t ==============
:allow loadkeys_t self:capability sys_admin;
:

Comment 1 Daniel Walsh 2012-03-07 18:56:58 UTC
This app should not need this priv. Was this machine running out of resources when this happened?

Comment 2 Miroslav Grepl 2012-03-08 09:18:44 UTC
AFAIK there is a bug for this.

Comment 3 Vitezslav Crhonek 2012-03-08 10:03:40 UTC

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


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