OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e2734a
)
su.c: disable permission checking
eclair-x86
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Thu, 29 Oct 2009 03:11:19 +0000
(11:11 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Wed, 14 Apr 2010 10:55:14 +0000
(18:55 +0800)
su/su.c
patch
|
blob
|
history
diff --git
a/su/su.c
b/su/su.c
index
b87cece
..
cf327b3
100644
(file)
--- a/
su/su.c
+++ b/
su/su.c
@@
-56,14
+56,14
@@
int main(int argc, char **argv)
gid = pw->pw_gid;
}
}
-
+#if 0
/* Until we have something better, only root and the shell can use su. */
myuid = getuid();
if (myuid != AID_ROOT && myuid != AID_SHELL) {
fprintf(stderr,"su: uid %d not allowed to su\n", myuid);
return 1;
}
-
+#endif
if(setgid(gid) || setuid(uid)) {
fprintf(stderr,"su: permission denied\n");
return 1;