diff options
author | Rom Lemarchand <romlem@google.com> | 2013-01-28 23:23:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-01-28 23:23:53 +0000 |
commit | 078ca5e30d04b10e2d6f6811a149643d255d4dc1 (patch) | |
tree | 0169d0ad05fee36c3373496f12eb5d1a89212b72 | |
parent | e74313baf8c2df0525f8a9a72a511b294ef632be (diff) | |
parent | cfb5ec3c283bb0fd5a99d6ed282a508be309d291 (diff) | |
download | system_core-078ca5e30d04b10e2d6f6811a149643d255d4dc1.zip system_core-078ca5e30d04b10e2d6f6811a149643d255d4dc1.tar.gz system_core-078ca5e30d04b10e2d6f6811a149643d255d4dc1.tar.bz2 |
Merge "logwrap: remove unnecessary call to setuid/setgid"
-rw-r--r-- | logwrapper/logwrap.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/logwrapper/logwrap.c b/logwrapper/logwrap.c index 09f8b81..ef457de 100644 --- a/logwrapper/logwrap.c +++ b/logwrapper/logwrap.c @@ -262,12 +262,6 @@ int logwrap(int argc, char* argv[], int *status) { signal_fd_write = sockets[0]; - // switch user and group to "log" - // this may fail if we are not root, - // but in that case switching user/group is unnecessary - setgid(AID_LOG); - setuid(AID_LOG); - rc = parent(argv[0], parent_ptty, sockets[1], pid, status); } |