Bug 677103 - SELinux is preventing /usr/bin/system-setup-keyboard from 'create' accesses on the file 00-system-setup-keyboard.conf.
Summary: SELinux is preventing /usr/bin/system-setup-keyboard from 'create' accesses o...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:296b08a3dd5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-13 12:00 UTC by Martin Naď
Modified: 2011-02-14 11:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-14 11:32:37 UTC
Type: ---


Attachments (Terms of Use)

Description Martin Naď 2011-02-13 12:00:37 UTC
SELinux is preventing /usr/bin/system-setup-keyboard from 'create' accesses on the file 00-system-setup-keyboard.conf.

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

If you believe that system-setup-keyboard should be allowed create access on the 00-system-setup-keyboard.conf 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 system-setup-ke /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:keyboardd_t:s0
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                00-system-setup-keyboard.conf [ file ]
Source                        system-setup-ke
Source Path                   /usr/bin/system-setup-keyboard
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           system-setup-keyboard-0.8.6-5.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-0.rc4.git0.2.fc15.x86_64
                              #1 SMP Tue Feb 8 04:08:32 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Ne 13. únor 2011, 12:29:45 CET
Last Seen                     Ne 13. únor 2011, 12:29:45 CET
Local ID                      8ba83217-af43-433a-8e25-e35d99176a8d

Raw Audit Messages
type=AVC msg=audit(1297596585.610:117): avc:  denied  { create } for  pid=2333 comm="system-setup-ke" name="00-system-setup-keyboard.conf" scontext=system_u:system_r:keyboardd_t:s0 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1297596585.610:117): arch=x86_64 syscall=open success=yes exit=ESRCH a0=401c40 a1=241 a2=1b6 a3=3f30e92420 items=0 ppid=1 pid=2333 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=system-setup-ke exe=/usr/bin/system-setup-keyboard subj=system_u:system_r:keyboardd_t:s0 key=(null)

Hash: system-setup-ke,keyboardd_t,etc_runtime_t,file,create

audit2allow

#============= keyboardd_t ==============
allow keyboardd_t etc_runtime_t:file create;

audit2allow -R

#============= keyboardd_t ==============
allow keyboardd_t etc_runtime_t:file create;

Comment 1 Miroslav Grepl 2011-02-14 11:32:37 UTC
I have found a bug. Thanks for reporting.

Will be fixed in the next rawhide release.


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