diff options
author | Erich Eckner <git@eckner.net> | 2018-11-05 10:16:58 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-05 10:16:58 +0100 |
commit | c70beb248690bf741fc64907de35aa3b947120b4 (patch) | |
tree | 3015031f7c9c3dcafd1d197fe933e5d7d0b39192 /anzeige.c | |
parent | 92f4cff100202c5ca654d1461f46c50148cd151a (diff) | |
download | anzeige-c70beb248690bf741fc64907de35aa3b947120b4.tar.xz |
nobodies uid and gid changed
Diffstat (limited to 'anzeige.c')
-rw-r--r-- | anzeige.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -147,12 +147,12 @@ void drop_privileges() int is_already_unprivileged = 0; - if (setgid(99) == -1) { + if (setgid(65534) == -1) { // nobody perror("can't drop group privileges"); if (! (is_already_unprivileged = (errno == 1))) exit(-1); } - if (setuid(99) == -1) { + if (setuid(65534) == -1) { // nobody perror("can't drop user privileges"); if (is_already_unprivileged != (errno == 1)) exit(-1); |