Skip to content

Commit

Permalink
Merge pull request #2570 from brauner/2018-08-23/fix_privileged_logging
Browse files Browse the repository at this point in the history
execute: pass /proc/self/fd/<nr>
  • Loading branch information
Blub committed Aug 23, 2018
2 parents f24e4d0 + bf58a98 commit 40a6212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/execute.c
Expand Up @@ -95,7 +95,7 @@ static int execute_start(struct lxc_handler *handler, void* data)
goto out2;
}

ret = snprintf(logfile, sizeof(logfile), "/proc/1/fd/%d", logfd);
ret = snprintf(logfile, sizeof(logfile), "/proc/self/fd/%d", logfd);
if (ret < 0 || (size_t)ret >= sizeof(logfile))
goto out3;

Expand Down

0 comments on commit 40a6212

Please sign in to comment.