generic-poky/meta/recipes-connectivity
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
..
avahi avahi: enable gobject-introspection 2016-03-12 22:11:44 +00:00
bind bind: update to 9.10.3-P3 2016-01-26 22:31:59 +00:00
bluez5 bluez5: allow D-Bus to spawn obexd in systems without systemd 2016-03-20 23:12:30 +00:00
connman connman: fix crash with iptables 1.6 2016-01-30 11:37:04 +00:00
dhcp dhcpd: create dhcpd user for dhcp dameon 2016-03-20 23:12:31 +00:00
iproute2 iproute2: update to version 4.4.0 2016-02-11 12:27:49 +00:00
irda-utils irda-utils: Fix header inclusions 2016-01-24 09:40:29 +00:00
iw iw: upgrade to version 4.3 2015-12-01 21:32:15 +00:00
libnss-mdns libnss-mdns: Check for nss.h before using 2016-02-02 14:44:16 +00:00
libpcap libpcap: update to 1.7.4 2015-12-01 21:32:07 +00:00
mobile-broadband-provider-info mobile-broadband-provider-info: update to tagged release 20151214 2015-12-28 09:25:16 +00:00
neard meta: more removals of redunant FILES_${PN}-dbg 2015-12-16 11:56:30 +00:00
nfs-utils nfs-utils: bugfix: adjust name of statd service unit 2016-02-18 07:39:31 +00:00
ofono ofono: upgrade to version 1.17 2015-12-01 21:32:09 +00:00
openssh openssh: Properly skip ptrace test if tools are missing 2016-02-11 12:27:47 +00:00
openssl openssl: don't move libcrypto to base_libdir 2016-03-20 23:12:26 +00:00
portmap portmap: Point to tirpc headers and libraries on musl 2016-01-24 09:40:30 +00:00
ppp ppp: Fix build with musl 2016-01-24 09:40:26 +00:00
ppp-dialin meta: set proper S value 2015-01-23 11:36:27 +00:00
resolvconf resolvconf: upgrade to 1.78 2016-01-15 11:54:49 +00:00
socat socat: Access c_ispeed and c_ospeed via APIs 2016-03-20 23:12:27 +00:00
wireless-tools meta: more removals of redunant FILES_${PN}-dbg 2015-12-16 11:56:30 +00:00
wpa-supplicant wpa-supplicant: Only depend on libgcrypt when needed 2016-02-11 12:27:47 +00:00