Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Révisionb5fb2684c5771eb41fdc4473e5f1238865382386 (tree)
l'heure2010-04-14 19:55:14
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

su.c: disable permission checking

Change Summary

Modification

--- a/su/su.c
+++ b/su/su.c
@@ -56,14 +56,14 @@ int main(int argc, char **argv)
5656 gid = pw->pw_gid;
5757 }
5858 }
59-
59+#if 0
6060 /* Until we have something better, only root and the shell can use su. */
6161 myuid = getuid();
6262 if (myuid != AID_ROOT && myuid != AID_SHELL) {
6363 fprintf(stderr,"su: uid %d not allowed to su\n", myuid);
6464 return 1;
6565 }
66-
66+#endif
6767 if(setgid(gid) || setuid(uid)) {
6868 fprintf(stderr,"su: permission denied\n");
6969 return 1;
Afficher sur ancien navigateur de dépôt.