Page 1 of 1

Cannot create socket

PostPosted: Tue May 17, 2005 8:04 am
by dy/dx
Hi,

I installed grsecurity on 2.4.30 and everything is working except the DHCP Server (ver. 3).

I've installed dhcpd3 in a chroot jail.

I set security level to high and everything works except the DHCP server so it would be great if I do not have to change it to another level.

When I start the DHCP with the following options:

Code: Select all
/usr/sbin/dhcpd3 -q -cf /etc/dhcp3/dhcpd.conf -user dhcp -group nogroup -chroot /home/system/dhcp -lf /dhcpd.leases eth0


I get this error message in syslog (and DHCPd is not starting)

Code: Select all
(...)
May 17 12:21:48 (none) dhcpd: Open a socket for LPF: Operation not permitted
(...)


I do not know exactly what that means I also did not found the appropriate option in grsecurity.

But is there a way to enable opening a socket (for LPF) in a chroot jail just for the dhcpd server?

That would be great!




Thanks a lot!

Niki


PS: If this is not possible, can you tell me WHICH option in grsecurity I must switch off?

PostPosted: Wed May 18, 2005 8:26 am
by std0ut
AFAIK you can enable a special group with grsec that can't make sockets...(client, servers, both).. So check if dhcp is not in that group or something..