Bug 796296

Summary: SELinux is preventing /bin/bash from 'execute' accesses on the file check_cpu_ucd.
Product: [Fedora] Fedora Reporter: srinivasa.nallapati <srinivasa.nallapati>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:128fcf1c15c3df8e1a9be8c6772e886b40c080e960f94eea692ed023568edc76
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-22 20:45:32 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 srinivasa.nallapati 2012-02-22 16:17:33 UTC
SELinux is preventing /bin/bash from 'execute' accesses on the file check_cpu_ucd.

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

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

Additional Information:
Source Context                unconfined_u:system_r:nagios_t:s0
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                check_cpu_ucd [ file ]
Source                        sh
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-4.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-46.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23
                              13:07:52 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 22 Feb 2012 09:28:01 PM IST
Last Seen                     Wed 22 Feb 2012 09:28:01 PM IST
Local ID                      0ce8f8a0-413d-4271-a8d2-2728aaf02fef

Raw Audit Messages
type=AVC msg=audit(1329926281.123:31073): avc:  denied  { execute } for  pid=16338 comm="sh" name="check_cpu_ucd" dev=dm-0 ino=936990 scontext=unconfined_u:system_r:nagios_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1329926281.123:31073): arch=x86_64 syscall=access success=no exit=EACCES a0=2354d00 a1=1 a2=0 a3=1 items=0 ppid=16335 pid=16338 auid=500 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=sh exe=/bin/bash subj=unconfined_u:system_r:nagios_t:s0 key=(null)

Hash: sh,nagios_t,user_home_t,file,execute

audit2allow

#============= nagios_t ==============
#!!!! This avc is allowed in the current policy

allow nagios_t user_home_t:file execute;

audit2allow -R

#============= nagios_t ==============
#!!!! This avc is allowed in the current policy

allow nagios_t user_home_t:file execute;

Comment 1 Daniel Walsh 2012-02-22 20:45:32 UTC
Please update to supported version.