2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 12:19:39 +00:00

Disable logpath for unprivileged containers

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber
2014-01-15 13:32:23 -05:00
parent 0ce2946360
commit ceceea1e96

View File

@@ -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)