Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1308343

Summary: avc denied {open} for comm="dhclient-script" path="/etc/sysconfig/network"
Product: Red Hat Enterprise Linux 7 Reporter: Thom Carlin <tcarlin>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CANTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-29 07:54:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thom Carlin 2016-02-14 12:50:26 UTC
Description of problem:

AVC denial in logs

Version-Release number of selected component (if applicable):

RHEL 7.1 (RHCI 6.0 TP2 RC9)

How reproducible:

Uncertain

Steps to Reproduce:
1. Install RHCI TripleO
2. Wait a couple of days
3. Check logs

Actual results:

type=AVC msg=audit(1455447226.770:90929): avc:  denied  { open } for  pid=7781 comm="dhclient-script" path="/etc/sysconfig/network" dev="sda3" ino=2153170936 scontext=system_u:system_r:dhcpc_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file
type=SYSCALL msg=audit(1455447226.770:90929): arch=c000003e syscall=2 success=no exit=-13 a0=959c10 a1=0 a2=435500 a3=fffffffffffffb07 items=0 ppid=1236 pid=7781 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dhclient-script" exe="/usr/bin/bash" subj=system_u:system_r:dhcpc_t:s0 key=(null)
type=NETFILTER_CFG msg=audit(1455447228.888:90930): table=filter family=2 entries=72

Expected results:

No errors 

Additional info:

Could be related to changes by RHCI/Director?

restorecon -RFvv /etc/sysconfig
Full path required for exclude: net:[4026532466].
Full path required for exclude: net:[4026532466].
restorecon reset /etc/sysconfig/network-scripts/route-br-ctlplane context unconfined_u:object_r:net_conf_t:s0->system_u:object_r:net_conf_t:s0
restorecon reset /etc/sysconfig/network-scripts/route-eth1 context unconfined_u:object_r:net_conf_t:s0->system_u:object_r:net_conf_t:s0
restorecon reset /etc/sysconfig/network-scripts/ifcfg-br-ctlplane context unconfined_u:object_r:net_conf_t:s0->system_u:object_r:net_conf_t:s0
restorecon reset /etc/sysconfig/network context unconfined_u:object_r:user_tmp_t:s0->system_u:object_r:etc_t:s0

Comment 2 Miroslav Grepl 2016-04-29 07:54:14 UTC
It means it is created by a user process and moved to /etc/sysconfig/ directory. If so they need to fix labeling using restorecon.