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 - avc denied {open} for comm="dhclient-script" path="/etc/sysconfig/network"
Summary: avc denied {open} for comm="dhclient-script" path="/etc/sysconfig/network"
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-14 12:50 UTC by Thom Carlin
Modified: 2016-04-29 07:54 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-29 07:54:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.