Bug 658723
| Summary: | cron reports "Unauthorized SELinux context" after restart when allow_execmod=0 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christoph Trassl <fedora> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 14 | CC: | dwalsh, mgrepl, mmaslano, pertusus, tmraz, vchelban |
| Target Milestone: | --- | Keywords: | SELinux |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-12-15 14:17:22 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
Christoph Trassl
2010-12-01 04:21:32 UTC
This looks like a bug in the selinux-policy. I can reproduce it here on fully up-to-date F14 as well. So cron jobs stop working unless allow_execmod is turned on? Or are you seeing these errors in the log file no matter what? The errors are there only if allow_execmod is turned off. And consequently the jobs stop to be executed. Also allow_execmod==1 seems to be the default on F14, is that intentional? Yes. Are you seeing any execmod errors in the log files when it is turned off? No, but I m running a really minimal install of F14. If you setenforce 0, does it work? What context is cron running with ps -eZ | grep cron No, setenforce 0 does not remove the message: Dec 1 16:28:40 f14 crond[4661]: ((null)) Unauthorized SELinux context, but SELinux in permissive mode, continuing (/etc/crontab) Dec 1 16:28:40 f14 crond[4661]: ((null)) Unauthorized SELinux context, but SELinux in permissive mode, continuing (/etc/cron.d/0hourly) The crond is running with: unconfined_u:system_r:crond_t:s0-s0:c0.c1023 What does this show? semanage login -l semanage user -l [root@f14 ~]# semanage login -l
Login Name SELinux User MLS/MCS Range
__default__ unconfined_u s0-s0:c0.c1023
root unconfined_u s0-s0:c0.c1023
system_u system_u s0-s0:c0.c1023
[root@f14 ~]# semanage user -l
Labeling MLS/ MLS/
SELinux User Prefix MCS Level MCS Range SELinux Roles
git_shell_u user s0 s0 git_shell_r
guest_u user s0 s0 guest_r
root user s0 s0-s0:c0.c1023 staff_r sysadm_r system_r unconfined_r
staff_u user s0 s0-s0:c0.c1023 staff_r sysadm_r system_r unconfined_r
sysadm_u user s0 s0-s0:c0.c1023 sysadm_r
system_u user s0 s0-s0:c0.c1023 system_r unconfined_r
unconfined_u user s0 s0-s0:c0.c1023 system_r unconfined_r
user_u user s0 s0 user_r
xguest_u user s0 s0 xguest_r
For some reason this has been removed from upstream. I do not remember why, and should probably be added back. ifdef(`enable_mcs',` init_ranged_daemon_domain(crond_t, crond_exec_t, s0 - mcs_systemhigh) ') We have found a bug. *** This bug has been marked as a duplicate of bug 663331 *** |