hostapd: Allow ctrl_iface group to be specified on command line

The new -G<group> command line argument can now be used to set the group
for the control interfaces to enable cases where hostapd is used without
a configuration file and the controlling program is not running with
root user privileges.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-03-29 17:09:31 +02:00
parent d19d2830b6
commit 187f87f04c
3 changed files with 51 additions and 3 deletions

View file

@ -40,6 +40,7 @@ struct hapd_interfaces {
int global_ctrl_sock;
char *global_iface_path;
char *global_iface_name;
gid_t ctrl_iface_group;
struct hostapd_iface **iface;
};