Bug 678131

Summary: SELinux is preventing /usr/sbin/irqbalance from 'search' accesses on the directory /.
Product: [Fedora] Fedora Reporter: Clyde E. Kunkel <clydekunkel7734>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:a4a3f6acdfcbfc4f33c4f3f50fb3eb3d252335d1eb2a760fc02024d4c3635ff5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-17 09:17:09 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 Clyde E. Kunkel 2011-02-16 20:46:18 UTC
SELinux is preventing /usr/sbin/irqbalance from 'search' accesses on the directory /.

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

If you believe that irqbalance should be allowed search access on the  directory 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 irqbalance /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:irqbalance_t:s0
Target Context                system_u:object_r:logrotate_t:s0
Target Objects                / [ dir ]
Source                        irqbalance
Source Path                   /usr/sbin/irqbalance
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           irqbalance-0.56-2.fc15
Target RPM Packages           filesystem-2.4.37-1.fc15
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
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                   2
First Seen                    Wed 16 Feb 2011 04:42:52 PM EST
Last Seen                     Wed 16 Feb 2011 04:43:12 PM EST
Local ID                      cbf551aa-2569-4a54-bbc8-4270cce693a2

Raw Audit Messages
type=AVC msg=audit(1297892592.999:229): avc:  denied  { search } for  pid=1613 comm="irqbalance" name="/" dev=dm-0 ino=2 scontext=system_u:system_r:irqbalance_t:s0 tcontext=system_u:object_r:logrotate_t:s0 tclass=dir


type=SYSCALL msg=audit(1297892592.999:229): arch=x86_64 syscall=open success=yes exit=ESRCH a0=404f4b a1=0 a2=1b6 a3=0 items=0 ppid=1 pid=1613 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=irqbalance exe=/usr/sbin/irqbalance subj=system_u:system_r:irqbalance_t:s0 key=(null)

Hash: irqbalance,irqbalance_t,logrotate_t,dir,search

audit2allow

#============= irqbalance_t ==============
allow irqbalance_t logrotate_t:dir search;

audit2allow -R

#============= irqbalance_t ==============
allow irqbalance_t logrotate_t:dir search;

Comment 1 Daniel Walsh 2011-02-16 21:53:28 UTC
*** Bug 678132 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2011-02-16 21:55:24 UTC
This is very strange.

What does 

ls -ldZ /

Show?

Comment 3 Daniel Walsh 2011-02-16 21:58:57 UTC
*** Bug 678129 has been marked as a duplicate of this bug. ***

Comment 4 Clyde E. Kunkel 2011-02-16 22:33:46 UTC
(In reply to comment #2)
> This is very strange.
> 
> What does 
> 
> ls -ldZ /
> 
> Show?
$ ls -ldZ /
dr-xr-xr-x. root root system_u:object_r:logrotate_t:s0 /
$


Yeah..looks like I borked an attempt to fix an avc I got on logrotate.

How do I fix?

TIA

Comment 5 Miroslav Grepl 2011-02-17 09:17:09 UTC
Execute

# fixfiles restore

which will fix your labels.