From: Robert Swiecki Date: Sun, 3 Jun 2018 01:22:50 +0000 (+0200) Subject: subproc: better log messages X-Git-Tag: 2.7~8^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc0e98b6b447caf5e37b9d745e7ee921d4c0bb1c;p=platform%2Fupstream%2Fnsjail.git subproc: better log messages --- diff --git a/subproc.cc b/subproc.cc index e49156d..a9488d8 100644 --- a/subproc.cc +++ b/subproc.cc @@ -368,15 +368,15 @@ void killAll(nsjconf_t* nsjconf) { static bool initParent(nsjconf_t* nsjconf, pid_t pid, int pipefd) { if (!net::initNsFromParent(nsjconf, pid)) { - LOG_E("Couldn't create and put MACVTAP interface into NS of PID '%d'", pid); + LOG_E("Couldn't initialize net namespace for pid '%d'", pid); return false; } if (!cgroup::initNsFromParent(nsjconf, pid)) { - LOG_E("Couldn't initialize cgroup user namespace"); + LOG_E("Couldn't initialize cgroup user namespace for pid '%d'", pid); exit(0xff); } if (!user::initNsFromParent(nsjconf, pid)) { - LOG_E("Couldn't initialize user namespaces for pid %d", pid); + LOG_E("Couldn't initialize user namespace for pid %d", pid); return false; } if (util::writeToFd(pipefd, &kSubprocDoneChar, sizeof(kSubprocDoneChar)) !=