diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 0b47fd6db..166ca1b89 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -783,7 +783,9 @@ int main(int argc, char **argv) { | |||
783 | int parent_sshd = 0; | 783 | int parent_sshd = 0; |
784 | { | 784 | { |
785 | pid_t ppid = getppid(); | 785 | pid_t ppid = getppid(); |
786 | EUID_ROOT(); | ||
786 | char *comm = pid_proc_comm(ppid); | 787 | char *comm = pid_proc_comm(ppid); |
788 | EUID_USER(); | ||
787 | if (comm) { | 789 | if (comm) { |
788 | if (strcmp(comm, "sshd") == 0) | 790 | if (strcmp(comm, "sshd") == 0) |
789 | parent_sshd = 1; | 791 | parent_sshd = 1; |