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:


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.