diff options
author | Ruslan Kuprieiev <kupruser@gmail.com> | 2015-01-29 23:59:30 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@parallels.com> | 2015-02-10 16:54:33 +0300 |
commit | bb0a6f0cb60312f51a4d38f8854f39c942670d29 (patch) | |
tree | b4749b77517950993c0259766ca3cf17cb928f31 | |
parent | e2c3ad37912bb4848573e3c8bbf740f166ae78fb (diff) |
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 <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-rw-r--r-- | log.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |