diff options
author | lns <matzeton@googlemail.com> | 2018-04-26 15:31:31 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2018-04-26 15:31:31 +0200 |
commit | dc8d50bd8d382505ca7a34d501097ce7c181803b (patch) | |
tree | 718f995e2fc730e406fad2c616d4e4e8d41cc4f2 /src/main.c | |
parent | d05358d2667d5b55a1bec36d051d95c06a3c7536 (diff) |
POTD skeleton #30.
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -92,8 +92,9 @@ int main(int argc, char *argv[]) D2("Server epoll fd: %d", epoll_fd); ABORT_ON_FATAL( epoll_fd < 0, "Server epoll setup" ); - ABORT_ON_FATAL( setgid(65534), "Change group" ); - ABORT_ON_FATAL( setuid(65534), "Change user" ); + D2("Server dropping privileges to %s:%s", "nobody", "NULL"); + ABORT_ON_FATAL( change_user_group("nobody", NULL), + "Server dropping privileges" ); N("%s", "Server epoll mainloop"); ABORT_ON_FATAL( server_mainloop_epoll( epoll_fd, srv, srv_siz ), |