Unverified Commit 40a6212e by Wolfgang Bumiller Committed by GitHub

Merge pull request #2570 from brauner/2018-08-23/fix_privileged_logging

execute: pass /proc/self/fd/<nr>
parents f24e4d00 bf58a980
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment