commit | bfba3542614fb900384f957c908a34d125e81d78 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Mon Mar 22 09:29:57 2004 +1100 |
committer | Damien Miller <djm@mindrot.org> | Mon Mar 22 09:29:57 2004 +1100 |
tree | 23b2cc1c99b3267c7add474fb291e65f9df3efb5 | |
parent | 4fefe24c0181ebce9ff4b83b3d25f1a3b1c5d2f8 [diff] [blame] |
- (djm) [sshd.c] Drop supplemental groups if started as root
diff --git a/sshd.c b/sshd.c index 9462bf0..3308a8d 100644 --- a/sshd.c +++ b/sshd.c
@@ -831,6 +831,9 @@ av = saved_argv; #endif + if (geteuid() == 0 && setgroups(0, NULL) == -1) + debug("setgroups(): %.200s", strerror(errno)); + /* Initialize configuration options to their default values. */ initialize_server_options(&options);