OSDN Git Service
(root)
/
android-x86
/
external-ppp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f72b2
)
pppd: Remove the UID check to allow running as a non-root user.
author
Chia-chi Yeh
<chiachi@android.com>
Tue, 30 Jun 2009 22:10:41 +0000
(06:10 +0800)
committer
Chia-chi Yeh
<chiachi@android.com>
Tue, 30 Jun 2009 22:10:41 +0000
(06:10 +0800)
It is safe because it will not work without proper capabilities.
Allowing privileged options is also safe for the same reason.
pppd/main.c
patch
|
blob
|
history
diff --git
a/pppd/main.c
b/pppd/main.c
index
efcc0e2
..
adb57f1
100644
(file)
--- 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);