Bug 1308343 - avc denied {open} for comm="dhclient-script" path="/etc/sysconfig/network"
avc denied {open} for comm="dhclient-script" path="/etc/sysconfig/network"
Status: CLOSED CANTFIX
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy (Show other bugs)
7.1
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Miroslav Grepl
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-14 07:50 EST by Thom Carlin
Modified: 2016-04-29 03:54 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-04-29 03:54:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Thom Carlin 2016-02-14 07:50:26 EST
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 03:54:14 EDT
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.