Red Hat Bugzilla – Bug 504954
crontab isn't usable with selinux enabled
Last modified: 2009-06-16 03:29:42 EDT
Description of problem:
I can't access crontab without disabling selinux.
Version-Release number of selected component (if applicable):
Try a fresh installation of Fedora 11 and enter 'crontab -e' as root
Steps to Reproduce:
1.Install Fedora 11 (x86-64)
2.login as root
3.enter "crontab -e"
[root@fry /]# crontab -e
-bash: /usr/bin/crontab: Keine Berechtigung
(means "no permission")
opens new vim-Window to enter some cronjobs
setenforce 0, wich means disabling selinux temporary, solves the problem
What's are the released versions?
rpm -q selinux-policy selinux-policy-targeted cronie
In case updating won't help then I'll need more information.
What's /var/log/cron is saying about this failure? Also there will be some messages in /var/log/audit/audit.log. Please attach the related parts of log files. Or if setroubleshoot (the star) offer some message, then you can attach it.
/var/log/cron is empty
/var/log/audit/audit.log did not have anything about "cron" or "crontab"
setroubleshoot is also empty
Strange. Anyway I suggest first install testing update https://admin.fedoraproject.org/updates/F11/FEDORA-2009-5888
Does the updated policy fixed the issue?
selinux-policy-3.6.12-45.fc11.noarch has fixed the crontab denials I was seeing: users' crontabs couldn't write to their own homedirs; "crontab -e" couldn't update ~/.viminfo, etc.
Confirm, that crontab -e is now working.
I can reproduce this on i386 and confirm the update fixes the problem.
Thanks for confirmation.
Fixed with selinux-policy-3.6.12-45.fc11.noarch