nsjail.c: LOG_F -> LOG_W for disable_clone_newuser

This commit is contained in:
Robert Swiecki 2017-09-25 12:01:44 +02:00
parent b3546b1a3e
commit 9be5520fec
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
#include "common.h" #include "common.h"
bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err); bool containSetupFD(struct nsjconf_t * nsjconf, int fd_in, int fd_out, int fd_err);
bool containContain(struct nsjconf_t *nsjconf); bool containContain(struct nsjconf_t *nsjconf);
#endif /* NS_CONTAIN_H */ #endif /* NS_CONTAIN_H */

View File

@ -172,7 +172,7 @@ int main(int argc, char *argv[])
LOG_F("Couldn't parse cmdline options"); LOG_F("Couldn't parse cmdline options");
} }
if (nsjconf.clone_newuser == false && geteuid() != 0) { if (nsjconf.clone_newuser == false && geteuid() != 0) {
LOG_F("--disable_clone_newuser requires root() privs"); LOG_W("--disable_clone_newuser might require root() privs");
} }
if (nsjconf.daemonize && (daemon(0, 0) == -1)) { if (nsjconf.daemonize && (daemon(0, 0) == -1)) {
PLOG_F("daemon"); PLOG_F("daemon");