Bug 586760
Summary: | SELinux is preventing /bin/rm "unlink" access on /etc/resolv.conf. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Mark Wielaard <mjw> |
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | mmalik |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:4331053ee955a6b6768bc7e7829b0be994f9a8fda79812d10f9e36826e68c132 | ||
Fixed In Version: | selinux-policy-3.7.19-11.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-10 21:34:24 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
Mark Wielaard
2010-04-28 10:27:15 UTC
This is caused by executing ipsec auto --up rh-vpn Which does produce an error messages: 003 "rh-vpn" #3: updateresolvconf-client command exited with status 1 and /etc/resolv.conf isn't updated with the new nameserver After setenforce Permissive there is also the following alert: Summary: SELinux is preventing /bin/bash "create" access on resolv.conf. Detailed Description: [SELinux is in permissive mode. This access was not denied.] SELinux denied access requested by _updown.netkey. It is not expected that this access is required by _updown.netkey and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: You can generate a local policy module to allow this access - see FAQ (http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug report. Additional Information: Source Context unconfined_u:system_r:ipsec_mgmt_t:s0 Target Context unconfined_u:object_r:net_conf_t:s0 Target Objects resolv.conf [ file ] Source _updown.netkey Source Path /bin/bash Port <Unknown> Host springer.wildebeest.org Source RPM Packages bash-4.1.2-2.el6 Target RPM Packages Policy RPM selinux-policy-3.7.19-7.el6 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Plugin Name catchall Host Name springer.wildebeest.org Platform Linux springer.wildebeest.org 2.6.32-22.el6.x86_64 #1 SMP Tue Apr 20 12:10:42 EDT 2010 x86_64 x86_64 Alert Count 2 First Seen Wed 28 Apr 2010 12:31:24 PM CEST Last Seen Wed 28 Apr 2010 12:31:24 PM CEST Local ID 3533f8ca-9fc0-4b99-b928-53bcde42b629 Line Numbers Raw Audit Messages node=springer.wildebeest.org type=AVC msg=audit(1272450684.129:88): avc: denied { create } for pid=5321 comm="_updown.netkey" name="resolv.conf" scontext=unconfined_u:system_r:ipsec_mgmt_t:s0 tcontext=unconfined_u:object_r:net_conf_t:s0 tclass=file node=springer.wildebeest.org type=AVC msg=audit(1272450684.129:88): avc: denied { write } for pid=5321 comm="_updown.netkey" name="resolv.conf" dev=dm-0 ino=532149 scontext=unconfined_u:system_r:ipsec_mgmt_t:s0 tcontext=unconfined_u:object_r:net_conf_t:s0 tclass=file node=springer.wildebeest.org type=SYSCALL msg=audit(1272450684.129:88): arch=c000003e syscall=2 success=yes exit=3 a0=1f325c0 a1=241 a2=1b6 a3=fffffffffffffff0 items=0 ppid=5320 pid=5321 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="_updown.netkey" exe="/bin/bash" subj=unconfined_u:system_r:ipsec_mgmt_t:s0 key=(null) This might be a duplicate of bug #585963, but that should already have been resolved according to the rpm changelog: * Mon Apr 26 2010 Dan Walsh <dwalsh> 3.7.19-6 - Allow initrc_t to read slapd_db_t Resolves: #585476 - Allow ipsec_mgmt to use unallocated devpts and to create /etc/resolv.conf Resolves: #585963 This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Fixed in selinux-policy-3.7.19-11.el6 Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |