Run as vpn user on Android.
authorTobias Brunner <tobias@strongswan.org>
Tue, 4 May 2010 15:05:12 +0000 (17:05 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Jun 2010 17:57:31 +0000 (19:57 +0200)
src/charon/charon.c

index 826fab8..c22b305 100644 (file)
 #include <utils/backtrace.h>
 #include <threading/thread.h>
 
+#ifdef ANDROID
+#include <private/android_filesystem_config.h>
+#endif
+
+
 /**
  * PID file, in which charon stores its process id
  */
@@ -183,6 +188,9 @@ static bool lookup_uid_gid()
                charon->gid = grp->gr_gid;
        }
 #endif
+#ifdef ANDROID
+       charon->uid = AID_VPN;
+#endif
        return TRUE;
 }