Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37181 - net-misc/dhcpcd policy files (a modified version of base-policy)
Summary: net-misc/dhcpcd policy files (a modified version of base-policy)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High normal
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-04 04:56 UTC by petre rodan (RETIRED)
Modified: 2011-10-30 22:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
file contexts (dhcpc.fc,431 bytes, text/plain)
2004-01-04 04:56 UTC, petre rodan (RETIRED)
no flags Details
type enforcement (dhcpc.te,2.62 KB, text/plain)
2004-01-04 04:56 UTC, petre rodan (RETIRED)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description petre rodan (RETIRED) gentoo-dev 2004-01-04 04:56:06 UTC
the idea is to have /var/lib/dhcp in var_lib_t and 
both dhcpc_t and dhcpd_t in var_lib_domain().

this aproach very simplifies very much the policy given the fact that /var/lib/dhcp is used by both server and client.
Comment 1 petre rodan (RETIRED) gentoo-dev 2004-01-04 04:56:31 UTC
Created attachment 23133 [details]
file contexts
Comment 2 petre rodan (RETIRED) gentoo-dev 2004-01-04 04:56:54 UTC
Created attachment 23134 [details]
type enforcement
Comment 3 petre rodan (RETIRED) gentoo-dev 2004-01-04 05:05:15 UTC
the /var/lib/dhcp modifications were needed by #37180.

since I don't use a dhcp client, can someone please test this policy if it breaks something? ;)

Comment 4 Chris PeBenito (RETIRED) gentoo-dev 2004-01-04 18:33:21 UTC
I don't understand the point of this.  It seems unlikely that the client and server would be running on the same machine.  Even if they are, var_lib_t is inappropriate.  You should use a ifdef or ifelse trick to declare the type for the directory.  For example, the client policy file should always declare the type for the directory, and then the server policy file should only declare the type for the directory, only if the client policy isn't being used.
Comment 5 petre rodan (RETIRED) gentoo-dev 2004-01-11 08:30:33 UTC
since you don't like it ...
changing dhcpd.te (#37180) to reflect the new situation