Bug 560337

Summary: SELinux is preventing /usr/sbin/lircd "sys_admin" access.
Product: [Fedora] Fedora Reporter: otavio.garcia
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5e5efe66ff62a773be3ad186f1ccd24f5c31c7b82ae765072337791c1ef5400d
Fixed In Version: 3.6.32-84.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-11 14:43:24 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
Miroslav add this patch to allow this access. none

Description otavio.garcia 2010-01-31 03:05:39 UTC
Summary:

SELinux is preventing /usr/sbin/lircd "sys_admin" access.

Detailed Description:

[lircd has a permissive type (lircd_t). This access was not denied.]

SELinux denied access requested by lircd. It is not expected that this access is
required by lircd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:lircd_t:s0
Target Context                unconfined_u:system_r:lircd_t:s0
Target Objects                None [ capability ]
Source                        lircd
Source Path                   /usr/sbin/lircd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           lirc-0.8.6-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-66.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.9-174.fc12.i686.PAE #1 SMP Mon Dec 21
                              06:04:56 UTC 2009 i686 i686
Alert Count                   1
First Seen                    Tue 12 Jan 2010 12:59:25 PM BRST
Last Seen                     Tue 12 Jan 2010 12:59:25 PM BRST
Local ID                      f0373461-f2c3-4c73-9881-b59016ae723c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1263308365.768:22): avc:  denied  { sys_admin } for  pid=22583 comm="lircd" capability=21 scontext=unconfined_u:system_r:lircd_t:s0 tcontext=unconfined_u:system_r:lircd_t:s0 tclass=capability

node=(removed) type=SYSCALL msg=audit(1263308365.768:22): arch=40000003 syscall=5 success=yes exit=6 a0=bfc36f82 a1=2 a2=bfc36190 a3=0 items=0 ppid=1 pid=22583 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttyS2 ses=1 comm="lircd" exe="/usr/sbin/lircd" subj=unconfined_u:system_r:lircd_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-66.fc12,catchall,lircd,lircd_t,lircd_t,capability,sys_admin
audit2allow suggests:

#============= lircd_t ==============
allow lircd_t self:capability sys_admin;

Comment 1 Daniel Walsh 2010-02-01 19:43:48 UTC
Created attachment 388120 [details]
Miroslav add this patch to allow this access.

Comment 2 Miroslav Grepl 2010-02-01 19:51:33 UTC
Fixed in selinux-policy-3.6.32-80.fc12

Comment 3 Fedora Update System 2010-02-03 23:20:35 UTC
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12

Comment 4 Fedora Update System 2010-02-05 01:45:55 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1492

Comment 5 Fedora Update System 2010-02-11 14:38:51 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.