aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/profile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index dc37a2820..ff8b47102 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -1497,7 +1497,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
1497 if (checkcfg(CFG_JOIN) || getuid() == 0) { 1497 if (checkcfg(CFG_JOIN) || getuid() == 0) {
1498 // try to join by name only 1498 // try to join by name only
1499 pid_t pid; 1499 pid_t pid;
1500 if (!read_pid(ptr + 14, &pid)) { 1500 EUID_ROOT();
1501 int r = name2pid(ptr + 14, &pid);
1502 EUID_USER();
1503 if (!r) {
1501 if (!cfg.shell && !arg_shell_none) 1504 if (!cfg.shell && !arg_shell_none)
1502 cfg.shell = guess_shell(); 1505 cfg.shell = guess_shell();
1503 1506