strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b02a03a
)
Run as vpn user on Android.
author
Tobias Brunner
<tobias@strongswan.org>
Tue, 4 May 2010 15:05:12 +0000
(17:05 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Tue, 15 Jun 2010 17:57:31 +0000
(19:57 +0200)
src/charon/charon.c
patch
|
blob
|
history
diff --git
a/src/charon/charon.c
b/src/charon/charon.c
index
826fab8
..
c22b305
100644
(file)
--- a/
src/charon/charon.c
+++ b/
src/charon/charon.c
@@
-38,6
+38,11
@@
#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;
}