| Summary: | logrotate can now switch user | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Göran Uddeborg <goeran> | ||||||
| Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 16 | CC: | dwalsh | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | selinux-policy-3.10.0-38.fc16 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-10-09 19:35:38 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
Created attachment 525840 [details]
I'm currently using this little module as a workaround.
Yes, we don't audit this in the policy
# for mailx
dontaudit logrotate_t self:capability { setuid setgid sys_ptrace };
Looks like we will need to allow it if logrotate is supposed to do it.
Yes I agree allow setuid and setgid. Fixed in selinux-policy-3.10.0-36.fc16 selinux-policy-3.10.0-36.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-36.fc16 Package selinux-policy-3.10.0-36.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-36.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-36.fc16 then log in and leave karma (feedback). selinux-policy-3.10.0-38.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 525839 [details] Logrotate avc:s appearing without dontaudit rules. Description of problem: After a couple of updates, I started getting mails with this content /etc/cron.daily/logrotate: error: error switching euid to 25 and egid to 25: Operation not permitted From what I can tell, this is because logrotate now has a configuration option to do the rotation under an alternate user id (option "su"). Bind is a package that uses this option. Version-Release number of selected component (if applicable): selinux-policy-targeted-3.10.0-28.fc16.noarch logrotate-3.8.0-3.fc16.x86_64 bind-9.8.1-2.fc16.x86_64 How reproducible: Every night Steps to Reproduce: 1. Just install the above packages, and wait for logrotate to run Actual results: Error mail Expected results: No mail Additional info: I saw no AVC:s at first, but after disabling dontaudit rules there appeared two AVC:s that explained the issue. Caveat in case it matters: Since this machine has an nvidia card, and the "nvidia" X drivers are not available yet for F16 kernels from Rpmfusion, I'm still using a F15 kernel. 2.6.40.3-0.fc15.x86_64 to be precise.