Why do we have dhcp_state_t, dhcpc_state_t and dhcpd_state_t?
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 1127496706.3275.32.camel@aeon
Quoted 16 lines · Russell Coker
Quoted 7 lines · Daniel J Walsh
Is it really valuable to isolate this data?
I have a bug where a dhclient program can not read its lease file because it is labeled
dhcp_state_t(The same as the directory). Anyone have any recollection of why it is setup this way, and any real reason I should not just makedhcpc_state_tanddhcpd_state_taliasdhcp_state_t?If you don't have such isolation then on a machine which runs both DHCP client and server (typical of a firewall) then the DHCP client (which will be attacked from the Internet - mine is regularly) will have the ability to indirectly control the DHCP server.
Quoted 8 lines
DHCP servers which have the most hostile DHCP clients will probably not be running DHCP client programs on other interfaces.
If we are going to merge those two types then perhaps the right thing to do would be to merge
dhcpd_tanddhcpc_tand have a boolean to determine whether DHCP client functionality should be permitted.
Ok I have talked to the dhcp maintainer hear and he is looking into moving the lease files into their own directory, to eliminate this problem. So if we end up with
/var/lib/dhclient/
and/var/lib/dhcpd/
Then we can label the directories correctly and eliminate the overlap.
Signature · 4 lines
-- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.