summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRom Lemarchand <romlem@google.com>2013-01-28 23:23:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-01-28 23:23:53 +0000
commit078ca5e30d04b10e2d6f6811a149643d255d4dc1 (patch)
tree0169d0ad05fee36c3373496f12eb5d1a89212b72
parente74313baf8c2df0525f8a9a72a511b294ef632be (diff)
parentcfb5ec3c283bb0fd5a99d6ed282a508be309d291 (diff)
downloadsystem_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.c6
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);
}