Bug 120123

Summary: m4 problem with dhcp file contexts
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jvdias
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-30 22:14:35 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:
Attachments:
Description Flags
dhcp-patch none

Description Tim Waugh 2004-04-06 08:20:20 UTC
Description of problem:
/var/lib/dhcp/dhcp.leases is not getting the right file context.

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

How reproducible:
100%

Patch below.

Comment 1 Tim Waugh 2004-04-06 08:21:14 UTC
Created attachment 99131 [details]
dhcp-patch

Comment 2 Daniel Walsh 2004-04-06 10:42:05 UTC
Not sure why this breaks but added to policy-1.9.2-13

Dan

Comment 3 Tim Waugh 2004-04-06 12:08:02 UTC
It breaks because dhcpc.te is processed before dhcpd.te, and by that
stage 'dhcp' is an m4 macro.  But the regexp for dhcp.leases looks like:

/var/lib(64)?/dhcp(3)?/dhcp\.leases.*

and gets processed to:

/var/lib(64)?/?/dhcp\.leases.*

..which obviously isn't what we want.

There might be more occurrences of this problem; this is the first
I've found though.