Bug 579940
| Summary: | SELinux is preventing /sbin/consoletype access to a leaked fifo_file file descriptor. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | yurichi11 |
| Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | dwalsh, mgrepl, muel, three, yurichi11 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:e7c53329d876b59c0ec9b576f79dd3382edab25ddee65a0cb3134b7b9e0b07db | ||
| Fixed In Version: | selinux-policy-3.6.32-113.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-05-03 16:08:30 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
yurichi11
2010-04-07 01:43:42 UTC
Miroslav, Change consoletype_exec(NetworkManager_t) to consoletype_domtrans(NetworkManager_t) Somehow resolv.conf is labeled ipsec_key_file_t
type=AVC msg=audit(1270574403.279:3712): avc: denied { unlink } for pid=1356 comm="NetworkManager" name="resolv.conf" dev=dm-1 ino=131637 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=staff_u:object_r:ipsec_key_file_t:s0 tclass=file
Ok, Current policy says that ipsec_mgmg_t creating files in /etc creates them as ipsec_key_file_t
files_etc_filetrans(ipsec_mgmt_t, ipsec_key_file_t, file)
But now ipsec_mgmt_t is creating /etc/resolv.conf with this label.
The question is why does ipsec_mgmt_t recreating /etc/resolv.conf?
Also what directories does ipsec_mgmt_t create files under /etc?
p1_up_down script overwrites the /etc/resolv.conf but it should not remove/create it unless it was already removed before the script is called. Is it possible that it was removed by something else before? I am also not sure whether this script is really running as ipsec_mgmt_t. Isn't this context used also for openswan? CCing Avesh. The ipsec_tools p1_up_down script does not write to anything else than /etc/resolv.conf but as I said above perhaps openswan needs this policy? Maybe we should add a restorecon to that script after resolv.conf is created. I think this communication is happening in the wrong bugzilla? Heh, it looks like so. (In reply to comment #1) > Miroslav, Change consoletype_exec(NetworkManager_t) to > consoletype_domtrans(NetworkManager_t) Fixed in selinux-policy-3.6.32-110.fc12 selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12 selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12 selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |