]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Make hs20-osu-client SP and <FQDN> directories group writable
authorPurushottam Kushwaha <pkushwah@codeaurora.org>
Sat, 16 Feb 2019 06:43:12 +0000 (12:13 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 18 Feb 2019 17:54:36 +0000 (19:54 +0200)
This updates SP/<FQDN> directory with following permissions on Android
to allow moving certificate at runtime from Cert/ to SP/<FQDN> folder:
 - user:read/write/exec
 - group:read/write/exec
(i.e., add group write permission)

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hs20/client/osu_client.c

index b48903dc479a81b069668d3dbaba7918f09207a9..1f594ce8a25ae2159c65880aebd760caa0d041bc 100644 (file)
@@ -612,8 +612,8 @@ int hs20_add_pps_mo(struct hs20_osu_client *ctx, const char *uri,
                }
        }
 
-       android_update_permission("SP", S_IRWXU | S_IRGRP | S_IXGRP);
-       android_update_permission(fname, S_IRWXU | S_IRGRP | S_IXGRP);
+       android_update_permission("SP", S_IRWXU | S_IRWXG);
+       android_update_permission(fname, S_IRWXU | S_IRWXG);
 
        snprintf(fname, fname_len, "SP/%s/pps.xml", fqdn);