Bug 245046

Summary: cron errors on hourly.cron with selinux-policy 2.6.4-20.fc7
Product: [Fedora] Fedora Reporter: Kevin Fenzi <kevin>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.4-21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-05 19:45:28 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:

Description Kevin Fenzi 2007-06-20 18:08:13 UTC
Description of problem:

Cron mails me every hour with an email containing: 

execl: couldn't exec `/bin/bash'
execl: Permission denied

Version-Release number of selected component (if applicable):
2.6.4-20.fc7 from updates-testing

How reproducible:

Install this selinux-policy package. Wait for the top of the hour. 

avcs I see: 

type=USER_START msg=audit(1182362461.375:187): user pid=2031 uid=0 auid=0
subj=system_u:system_r:cro
nd_t:s0-s0:c0.c1023 msg='PAM: session open acct=root : exe="/usr/sbin/crond"
(hostname=?, addr=?, te
rminal=cron res=success)'
type=AVC msg=audit(1182362461.377:188): avc:  denied  { transition } for 
pid=2033 comm="crond" name
="bash" dev=sda2 ino=326090 scontext=system_u:system_r:crond_t:s0-s0:c0.c1023
tcontext=user_u:system
_r:unconfined_t:s0 tclass=process
type=SYSCALL msg=audit(1182362461.377:188): arch=c000003e syscall=59 success=no
exit=-13 a0=5555557e
e596 a1=7ffff7eae780 a2=5555557ef3b0 a3=0 items=0 ppid=2031 pid=2033 auid=0
uid=0 gid=0 euid=0 suid=
0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="crond" exe="/usr/sbin/crond"
subj=system_u:system_r
:crond_t:s0-s0:c0.c1023 key=(null)
type=AVC_PATH msg=audit(1182362461.377:188):  path="/bin/bash"
type=CRED_DISP msg=audit(1182362461.397:189): user pid=2031 uid=0 auid=0
subj=system_u:system_r:cron
d_t:s0-s0:c0.c1023 msg='PAM: setcred acct=root : exe="/usr/sbin/crond"
(hostname=?, addr=?, terminal
=cron res=success)'
type=USER_END msg=audit(1182362461.397:190): user pid=2031 uid=0 auid=0
subj=system_u:system_r:crond
_t:s0-s0:c0.c1023 msg='PAM: session close acct=root : exe="/usr/sbin/crond"
(hostname=?, addr=?, ter
minal=cron res=success)'

Comment 1 Kevin Fenzi 2007-08-05 19:45:28 UTC
This was fixed in the very next release, 2.6.4-21. 
Closing.