Bug 575560
| Summary: | SELinux is preventing /usr/sbin/crond "create" access . | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matěj Cepl <mcepl> | ||||
| Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | cpebenito, dwalsh, eparis, jmorris, mcepl, mgrepl, sdsmall | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | setroubleshoot_trace_hash:479e4b6430104d75b009af9b5af6c88b7ed1ddfa5a521c0297d483e38cd52aee | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-07-29 16:35:00 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: | |||||||
| Attachments: |
|
||||||
|
Description
Matěj Cepl
2010-03-21 13:45:12 UTC
johanka:rpmbuild$ crontab -l SHELL=/bin/sh */5 * * * * $HOME/.bin/fortune-thunderbird johanka:rpmbuild$ cat /home/matej/.bin/fortune-thunderbird #!/bin/sh $HOME/.bin/fortune >~/.signature-thunderbird johanka:rpmbuild$ cat /home/matej/.bin/fortune #!/bin/sh #Insert your constant tagline here. cat <<EOS http://www.ceplovi.cz/matej/, Jabber: mcepl<at>ceplovi.cz GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC EOS /usr/bin/fortune -s ~/.config/dotfiles/citations johanka:rpmbuild$ After another cycle, I've got to this:
johanka:~# cat /root/myCrontabFileCreate.te
module myCrontabFileCreate 1.2;
require {
type tmp_t;
type cronjob_t;
type crond_t;
type user_home_dir_t;
class key create;
class dir { write add_name };
}
allow crond_t cronjob_t:key create;
allow cronjob_t tmp_t:dir add_name;
allow cronjob_t tmp_t:dir write;
allow cronjob_t user_home_dir_t:dir write;
johanka:~#
Created attachment 401561 [details]
output of ausearch -m AVC -ts 14:43
:key create is checked upon setkeycreatecon(3), called by pam_selinux, to set up the key creation security context just as it sets up the user cron job security context. I thought user cron jobs were being run in the user's normal context these days (e.g. user_t, staff_t) rather than in a separate domain? Fixed in selinux-policy-3.8.8-8.fc14 |