| Summary: | SELinux is preventing /bin/loadkeys from 'sys_admin' accesses on the None . | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Thibault Milan <clawfire> |
| Component: | kbd | Assignee: | Vitezslav Crhonek <vcrhonek> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, j.maurie, jorg, mgrepl, vcrhonek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:8c8eb077577708bbf611cc2c89e64cf86785ddf26b8b2dedf64a5a7e88bca8da | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-14 00:03:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Why should loadkeys want this capablity
CAP_SYS_ADMIN
* Perform a range of system administration operations includ‐
ing: quotactl(2), mount(2), umount(2), swapon(2),
swapoff(2), sethostname(2), and setdomainname(2);
* perform IPC_SET and IPC_RMID operations on arbitrary System
V IPC objects;
* perform operations on trusted and security Extended
Attributes (see attr(5));
* use lookup_dcookie(2);
* use ioprio_set(2) to assign IOPRIO_CLASS_RT and (before
Linux 2.6.25) IOPRIO_CLASS_IDLE I/O scheduling classes;
* forge UID when passing socket credentials;
* exceed /proc/sys/fs/file-max, the system-wide limit on the
number of open files, in system calls that open files (e.g.,
accept(2), execve(2), open(2), pipe(2));
* employ CLONE_NEWNS flag with clone(2) and unshare(2);
* perform KEYCTL_CHOWN and KEYCTL_SETPERM keyctl(2) opera‐
tions;
* perform madvise(2) MADV_HWPOISON operation.
Thibault, can you please send whole loadkeys command (with arguments), which is activating this AVC denial? I'm not able to reproduce it. *** Bug 801091 has been marked as a duplicate of this bug. *** *** Bug 882493 has been marked as a duplicate of this bug. *** Changed language settings in Country/Language (system settings) Package: (null) Architecture: x86_64 OS Release: Fedora release 18 (Spherical Cow) I was setting up FR as input language and applying it to the whole system Package: (null) Architecture: x86_64 OS Release: Fedora release 18 (Spherical Cow) Did everything seem to work? This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.2-1.fc16.i686 reason: SELinux is preventing /bin/loadkeys from 'sys_admin' accesses on the None . time: jeu. 02 févr. 2012 11:44:34 CET description: :SELinux is preventing /bin/loadkeys from 'sys_admin' accesses on the None . : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that loadkeys should be allowed sys_admin access on the <Inconnu> 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 [ None ] :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-74.fc16.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.2-1.fc16.i686 #1 : SMP Thu Jan 26 03:38:31 UTC 2012 i686 i686 :Alert Count 1 :First Seen jeu. 02 févr. 2012 11:43:56 CET :Last Seen jeu. 02 févr. 2012 11:43:56 CET :Local ID 3ee13ba9-41c1-4527-be5e-bc6f7f403fde : :Raw Audit Messages :type=AVC msg=audit(1328179436.196:187): avc: denied { sys_admin } for pid=7848 comm="loadkeys" capability=21 scontext=system_u:system_r:loadkeys_t:s0 tcontext=system_u:system_r:loadkeys_t:s0 tclass=capabilitynode=(removed) type=SYSCALL msg=audit(1328179436.196:187): arch=40000003 syscall=54 success=no exit=-1 a0=7 a1=4b47 a2=bfbaca5c a3=0 items=0 ppid=7847 pid=7848 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,None,sys_admin : :audit2allow : : :audit2allow -R : :