From: Tobias Brunner Date: Tue, 4 May 2010 15:05:12 +0000 (+0200) Subject: Run as vpn user on Android. X-Git-Tag: 4.4.1~161 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=404960e52226aa07bc8751c7424c68c1baadf5af;p=thirdparty%2Fstrongswan.git Run as vpn user on Android. --- diff --git a/src/charon/charon.c b/src/charon/charon.c index 826fab8661..c22b3058b5 100644 --- a/src/charon/charon.c +++ b/src/charon/charon.c @@ -38,6 +38,11 @@ #include #include +#ifdef ANDROID +#include +#endif + + /** * PID file, in which charon stores its process id */ @@ -182,6 +187,9 @@ static bool lookup_uid_gid() } charon->gid = grp->gr_gid; } +#endif +#ifdef ANDROID + charon->uid = AID_VPN; #endif return TRUE; }