Commit ceceea1e by Stéphane Graber

Disable logpath for unprivileged containers

parent 0ce29463
......@@ -318,6 +318,11 @@ extern int lxc_log_init(const char *name, const char *file,
lxc_logfile_specified = 1;
ret = __lxc_log_set_file(file, 1);
} else {
/* For now, unprivileged containers have to set -l to get logging */
if (geteuid())
return 0;
ret = -1;
if (!lxcpath)
......
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