Bug 882493

Summary: SELinux is preventing /usr/bin/loadkeys from using the 'sys_admin' capabilities.
Product: [Fedora] Fedora Reporter: Jörg BUCHMANN <jorg>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:aa6e3b28837270289a74b7062f30c4ef355fcec0b988a07cf7316e95a1aea530
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-03 10:39:03 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Jörg BUCHMANN 2012-12-01 11:53:06 UTC
Additional info:
libreport version: 2.0.17
kernel:         3.6.6-3.fc18.x86_64

description:
:SELinux is preventing /usr/bin/loadkeys from using the 'sys_admin' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If vous pensez que loadkeys devrait avoir des capacités sys_admin par défaut.
:Then vous devriez rapporter ceci en tant qu'anomalie.
:Vous pouvez générer un module de stratégie local pour autoriser cet accès.
:Do
:autoriser cet accès pour le moment en exécutant :
:# 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                   /usr/bin/loadkeys
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           kbd-1.15.3-6.fc18.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-50.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-3.fc18.x86_64 #1 SMP Mon Nov
:                              5 16:26:34 UTC 2012 x86_64 x86_64
:Alert Count                   7
:First Seen                    2012-12-01 12:52:12 CET
:Last Seen                     2012-12-01 12:52:12 CET
:Local ID                      8937b60c-73f7-4edd-aaa8-f325e54b2750
:
:Raw Audit Messages
:type=AVC msg=audit(1354362732.835:324): avc:  denied  { sys_admin } for  pid=1939 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(1354362732.835:324): arch=x86_64 syscall=ioctl success=no exit=EPERM a0=3 a1=4b47 a2=7fff48465760 a3=407143 items=0 ppid=1938 pid=1939 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=/usr/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 Jörg BUCHMANN 2012-12-01 11:53:11 UTC
Created attachment 655525 [details]
File: type

Comment 2 Jörg BUCHMANN 2012-12-01 11:53:15 UTC
Created attachment 655526 [details]
File: hashmarkername

Comment 3 Jörg BUCHMANN 2012-12-02 14:46:15 UTC
Changed the input from EN to FR

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 4 Miroslav Grepl 2012-12-03 10:39:03 UTC

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