hostapd: Don't chown control interface to root
authorPontus Fuchs <pontus.fuchs@gmail.com>
Mon, 17 Dec 2012 14:27:04 +0000 (16:27 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 17 Dec 2012 14:27:04 +0000 (16:27 +0200)
commit9cbd5845d062ab0bc1de4678bc4f0b85bc0d32a9
tree79fb0dea78b8f1b183a7758297e5f1296d219197
parent9904ff876a34e2f50a42127825bc7c879909b721
hostapd: Don't chown control interface to root

If ctrl_interface_group in the config file is set hostapd tries to
chown the dir and socket to uid 0. This causes the chown to fail
if hostapd is run as non-root.

Signed-hostap: Pontus Fuchs <pontus.fuchs@gmail.com>
hostapd/ctrl_iface.c