diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-11 08:57:44 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-11 08:57:44 -0500 |
commit | 672fa03d65e8ffe0cca6e79d374caf0bf9988d20 (patch) | |
tree | 3363685b06fc627f35c03cce80350ae823c412e5 /src/firemon/firemon.c | |
parent | testing (diff) | |
download | firejail-672fa03d65e8ffe0cca6e79d374caf0bf9988d20.tar.gz firejail-672fa03d65e8ffe0cca6e79d374caf0bf9988d20.tar.zst firejail-672fa03d65e8ffe0cca6e79d374caf0bf9988d20.zip |
hidepid part 1
Diffstat (limited to 'src/firemon/firemon.c')
-rw-r--r-- | src/firemon/firemon.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/firemon/firemon.c b/src/firemon/firemon.c index 3140c5f70..950311c00 100644 --- a/src/firemon/firemon.c +++ b/src/firemon/firemon.c | |||
@@ -62,17 +62,6 @@ int find_child(int id) { | |||
62 | return -1; | 62 | return -1; |
63 | } | 63 | } |
64 | 64 | ||
65 | // drop privileges | ||
66 | void firemon_drop_privs(void) { | ||
67 | // drop privileges | ||
68 | if (setgroups(0, NULL) < 0) | ||
69 | errExit("setgroups"); | ||
70 | if (setgid(getgid()) < 0) | ||
71 | errExit("setgid/getgid"); | ||
72 | if (setuid(getuid()) < 0) | ||
73 | errExit("setuid/getuid"); | ||
74 | } | ||
75 | |||
76 | // sleep and wait for a key to be pressed | 65 | // sleep and wait for a key to be pressed |
77 | void firemon_sleep(int st) { | 66 | void firemon_sleep(int st) { |
78 | if (terminal_set == 0) { | 67 | if (terminal_set == 0) { |