Skip to contentSkip to conversation

Why do we have dhcp_state_t, dhcpc_state_t and dhcpd_state_t?

DISCUSSION Daniel J Walsh 1 participant 1 message Sep 23, 2005 2 messages not in the archive SELinux security module

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
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 make dhcpc_state_t and dhcpd_state_t alias dhcp_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_t and dhcpc_t and 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.