From bb0a6f0cb60312f51a4d38f8854f39c942670d29 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 29 Jan 2015 22:59:30 +0200 Subject: [PATCH] log: chown log to current criu user User is already able to see it in stdout, so there is no reason why we should protect it. Signed-off-by: Ruslan Kuprieiev Signed-off-by: Pavel Emelyanov --- log.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/log.c b/log.c index 0a5eb58b1..a9f1757ef 100644 --- a/log.c +++ b/log.c @@ -86,6 +86,11 @@ int log_init(const char *output) pr_perror("Can't create log file %s", output); return -1; } + + if (cr_fchown(new_logfd)) { + pr_perror("Can't chown log file %s", output); + return -1; + } } else { new_logfd = dup(DEFAULT_LOGFD); if (new_logfd < 0) {