[PATCH] Allow RW access to wpa_supplicant config file
Fri Feb 25 09:59:05 PST 2011
On Fri, Feb 25, 2011 at 12:39 AM, Johannes Berg
<johannes at sipsolutions.net> wrote:
> 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.
You mean we can use it under define ?
I can add "#ifdef ANDROID".
Will it be Ok ?
More information about the Hostap