diff options
author | Chia-chi Yeh <chiachi@android.com> | 2009-07-01 06:10:41 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2009-07-01 06:10:41 +0800 |
commit | dffa18062629fab18e536d21fe5f8b8f07c7e991 (patch) | |
tree | 29b4651c28b97e655c2fb951685a00e04313a9c3 | |
parent | 12f72b25ea06006706eb0cdbbe1c965eb8fc03be (diff) | |
download | ppp-dffa18062629fab18e536d21fe5f8b8f07c7e991.tar.gz |
pppd: Remove the UID check to allow running as a non-root user.
It is safe because it will not work without proper capabilities.
Allowing privileged options is also safe for the same reason.
-rw-r--r-- | pppd/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pppd/main.c b/pppd/main.c index efcc0e2..adb57f1 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -364,6 +364,7 @@ main(argc, argv) { extern void pppox_init(); pppox_init(); + privileged = 1; } #endif @@ -398,6 +399,7 @@ main(argc, argv) if (debug) setlogmask(LOG_UPTO(LOG_DEBUG)); +#ifndef ANDROID_CHANGES /* * Check that we are running as root. */ @@ -406,6 +408,7 @@ main(argc, argv) argv[0]); exit(EXIT_NOT_ROOT); } +#endif if (!ppp_available()) { option_error("%s", no_ppp_msg); |