[PATCH] Allow RW access to wpa_supplicant config file
Dmitry Shmidt
dimitrysh at google.com
Fri Feb 25 12:59:05 EST 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.
>
> johannes
>
You mean we can use it under define ?
I can add "#ifdef ANDROID".
Will it be Ok ?
Thanks,
Dmitry
More information about the HostAP
mailing list