Bug 796296 - SELinux is preventing /bin/bash from 'execute' accesses on the file check_cpu_ucd.
Summary: SELinux is preventing /bin/bash from 'execute' accesses on the file check_cpu...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:128fcf1c15c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-22 16:17 UTC by srinivasa.nallapati
Modified: 2012-02-22 20:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-22 20:45:32 UTC
Type: ---


Attachments (Terms of Use)

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.


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