From 4752343f8286b1ba6135847a70fb254fc3362241 Mon Sep 17 00:00:00 2001 From: 2xsec Date: Mon, 8 Oct 2018 16:24:53 +0900 Subject: [PATCH 1/2] start: change log level Signed-off-by: 2xsec --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 61a16e86a..f0401f5fb 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1798,7 +1798,7 @@ static int lxc_spawn(struct lxc_handler *handler) ret = lxc_netns_set_nsid(handler->nsfd[LXC_NS_NET]); if (ret < 0) - SYSERROR("Failed to allocate new network namespace id"); + SYSWARN("Failed to allocate new network namespace id"); else TRACE("Allocated new network namespace id"); } From 3e9bde7e8ee7048e5687d16f62d6039485ea083a Mon Sep 17 00:00:00 2001 From: 2xsec Date: Mon, 8 Oct 2018 16:37:40 +0900 Subject: [PATCH 2/2] file_utils: fix too wide or inconsistent non-owner permissions Signed-off-by: 2xsec --- src/lxc/file_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/file_utils.c b/src/lxc/file_utils.c index 891aa0ffd..1655e0053 100644 --- a/src/lxc/file_utils.c +++ b/src/lxc/file_utils.c @@ -302,7 +302,7 @@ FILE *fopen_cloexec(const char *path, const char *mode) open_mode |= O_EXCL; open_mode |= O_CLOEXEC; - fd = open(path, open_mode, 0666); + fd = open(path, open_mode, 0660); if (fd < 0) return NULL;