[PATCH] Allow RW access to wpa_supplicant config file
johannes at sipsolutions.net
Fri Feb 25 03:39:46 EST 2011
On Thu, 2011-02-24 at 17:01 -0800, Dmitry Shmidt wrote:
> @@ -288,6 +290,11 @@ struct wpa_config * wpa_config_read(const char *name)
> return NULL;
> + /* When creating the config file, give group read/write access
> + * to allow backup and restoring the file.
> + */
> + chmod(name, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
I think that'll probably have to be configurable in some way, maybe a
build config is sufficient? Otherwise it'll probably lead to unexpected
behaviour on some people's systems.
More information about the HostAP