Bug 688708

Summary: SELinux is preventing /usr/libexec/olpc-kbdshim-hal from 'write' accesses on the chr_file /dev/uinput.
Product: [Fedora] Fedora Reporter: Bill Thielman <b.thielman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: b.thielman, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ce27691afadc2ec4e670a6f9b80a3ff26dd12c3ece424b47ee48af638e977adc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-17 09:02:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bill Thielman 2011-03-17 19:12:00 UTC
SELinux is preventing /usr/libexec/olpc-kbdshim-hal from 'write' accesses on the chr_file /dev/uinput.

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

If you believe that olpc-kbdshim-hal should be allowed write access on the uinput chr_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 olpc-kbdshim-ha /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:hald_t:s0
Target Context                system_u:object_r:event_device_t:s0
Target Objects                /dev/uinput [ chr_file ]
Source                        olpc-kbdshim-ha
Source Path                   /usr/libexec/olpc-kbdshim-hal
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           olpc-kbdshim-17-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686 #1 SMP
                              Mon Feb 7 07:04:18 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Thu 17 Mar 2011 03:10:02 PM EDT
Last Seen                     Thu 17 Mar 2011 03:10:02 PM EDT
Local ID                      2d3246e2-fc59-4ed6-8d2f-fa253ef15a8f

Raw Audit Messages
type=AVC msg=audit(1300389002.173:159): avc:  denied  { write } for  pid=1569 comm="olpc-kbdshim-ha" path="/dev/uinput" dev=devtmpfs ino=11363 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:event_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1300389002.173:159): arch=i386 syscall=write success=yes exit=EBUSY a0=4 a1=bfce2018 a2=10 a3=0 items=0 ppid=1546 pid=1569 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=olpc-kbdshim-ha exe=/usr/libexec/olpc-kbdshim-hal subj=system_u:system_r:hald_t:s0 key=(null)

Hash: olpc-kbdshim-ha,hald_t,event_device_t,chr_file,write

audit2allow

#============= hald_t ==============
allow hald_t event_device_t:chr_file write;

audit2allow -R

#============= hald_t ==============
allow hald_t event_device_t:chr_file write;

Comment 1 Daniel Walsh 2011-03-31 19:55:45 UTC
Are you still seeing these?