generic-poky/meta/recipes-connectivity/dhcp/files
Alexandru Moise 07515b0b69 dhcpd: create dhcpd user for dhcp dameon
This patch enables the functionality for dhcpd service to be started
with dhcp uid and gid.

Test steps:

Step 1: Assign ip to interface
ifconfig eth0 192.168.1.1

Step 2: Edit /etc/dhcp/dhcpd.conf:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option broadcast-address 192.168.1.255;
        range 192.168.1.88 192.168.1.88;
        option routers 192.168.1.0;
}

Step 3: Edit /etc/default/dhcp-server:
INTERFACES="eth0"

Step 4: Check uid and gid of running dhcpd process
$ ps -eo user:19,group:19,cmd | grep dhcpd
dhcp        dhcp        /usr/sbin/dhcpd eth0 -user dhcp -group dhcp

(From OE-Core rev: 36d59255131f6d3f289d4f5dfcb58a9890996ffe)

Signed-off-by: Alexandru Moise <alexandru.moise@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-20 23:12:31 +00:00
..
default-relay meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
default-server packages: Separate out most of the remaining packages into recipes 2010-09-01 19:09:57 +01:00
dhclient.conf packages: Separate out most of the remaining packages into recipes 2010-09-01 19:09:57 +01:00
dhcpd.conf packages: Separate out most of the remaining packages into recipes 2010-09-01 19:09:57 +01:00
dhcpd.service dhcp: modify dhcpd.service to make it start successfully and add systemd service files dhcpd6.service 2015-07-08 00:01:19 +01:00
dhcpd6.service dhcp: modify dhcpd.service to make it start successfully and add systemd service files dhcpd6.service 2015-07-08 00:01:19 +01:00
dhcrelay.service dhcp: add systemd service files 2014-09-03 11:09:05 +01:00
init-relay packages: Separate out most of the remaining packages into recipes 2010-09-01 19:09:57 +01:00
init-server dhcpd: create dhcpd user for dhcp dameon 2016-03-20 23:12:31 +00:00