OSDN Git Service

Accumulative patch from commit b618a469c42120e984ab1c85ed6058504d1fca78
[android-x86/external-wpa_supplicant_8.git] / src / utils / os_unix.c
index 23a93be..cc22e83 100644 (file)
@@ -257,7 +257,11 @@ int os_program_init(void)
         * We ignore errors here since errors are normal if we
         * are already running as non-root.
         */
+#ifdef ANDROID_SETGROUPS_OVERRIDE
+       gid_t groups[] = { ANDROID_SETGROUPS_OVERRIDE };
+#else /* ANDROID_SETGROUPS_OVERRIDE */
        gid_t groups[] = { AID_INET, AID_WIFI, AID_KEYSTORE };
+#endif /* ANDROID_SETGROUPS_OVERRIDE */
        struct __user_cap_header_struct header;
        struct __user_cap_data_struct cap;