Bug 1046118 - SELinux is preventing /usr/bin/xkbcomp from 'getattr' accesses on the file /var/lib/xkb/server-8.xkm.
Summary: SELinux is preventing /usr/bin/xkbcomp from 'getattr' accesses on the file /v...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4352f6cb0f65b723b6175cc7a7b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-23 18:11 UTC by Doncho Gunchev
Modified: 2014-01-16 07:10 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-116.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 07:10:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
The output of "ausearch -su bumblebee_t" (12.33 KB, application/gzip)
2014-01-06 21:04 UTC, Doncho Gunchev
no flags Details

Description Doncho Gunchev 2013-12-23 18:11:31 UTC
Description of problem:
SELinux is preventing /usr/bin/xkbcomp from 'getattr' accesses on the file /var/lib/xkb/server-8.xkm.

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

If you believe that xkbcomp should be allowed getattr access on the server-8.xkm 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 xkbcomp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:bumblebee_t:s0
Target Context                system_u:object_r:xkb_var_lib_t:s0
Target Objects                /var/lib/xkb/server-8.xkm [ file ]
Source                        xkbcomp
Source Path                   /usr/bin/xkbcomp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-xkb-utils-7.7-8.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-12-22 05:00:44 EET
Last Seen                     2013-12-23 19:46:56 EET
Local ID                      24b4f30d-3ee4-47eb-9a1f-dfb4a6f64c77

Raw Audit Messages
type=AVC msg=audit(1387820816.845:1466): avc:  denied  { getattr } for  pid=7025 comm="xkbcomp" path="/var/lib/xkb/server-8.xkm" dev="dm-2" ino=3539580 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:xkb_var_lib_t:s0 tclass=file


type=SYSCALL msg=audit(1387820816.845:1466): arch=x86_64 syscall=fstat success=yes exit=0 a0=0 a1=7fff47ef1670 a2=7fff47ef1670 a3=308973c8c0 items=0 ppid=7012 pid=7025 auid=4294967295 uid=0 gid=1001 euid=0 suid=0 fsuid=0 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=xkbcomp exe=/usr/bin/xkbcomp subj=system_u:system_r:bumblebee_t:s0 key=(null)

Hash: xkbcomp,bumblebee_t,xkb_var_lib_t,file,getattr

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-06 20:29:40 UTC
Are you getting more AVC msgs for bumblebee?

# ausearch -su bumblebee_t

Comment 2 Doncho Gunchev 2014-01-06 21:02:52 UTC
Yes, a lot. Will attach a file.

Comment 3 Doncho Gunchev 2014-01-06 21:04:30 UTC
Created attachment 846299 [details]
The output of "ausearch -su bumblebee_t"

Comment 4 Miroslav Grepl 2014-01-09 13:11:45 UTC
Ok. Most of them are fixed in the latest build and I added additional fixes. Thank you.

Comment 5 Fedora Update System 2014-01-13 22:56:33 UTC
selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20

Comment 6 Fedora Update System 2014-01-15 05:58:09 UTC
Package selinux-policy-3.12.1-116.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-116.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-01-16 07:10:55 UTC
selinux-policy-3.12.1-116.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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