nsjail: remove warning about CLONE_NEWUSER
authorRobert Swiecki <robert@swiecki.net>
Fri, 29 Mar 2019 20:42:05 +0000 (21:42 +0100)
committerRobert Swiecki <robert@swiecki.net>
Fri, 29 Mar 2019 20:42:05 +0000 (21:42 +0100)
nsjail.cc

index 720095f..fd44155 100644 (file)
--- a/nsjail.cc
+++ b/nsjail.cc
@@ -203,9 +203,6 @@ int main(int argc, char* argv[]) {
        if (!nsjconf) {
                LOG_F("Couldn't parse cmdline options");
        }
-       if (!nsjconf->clone_newuser && geteuid() != 0) {
-               LOG_W("--disable_clone_newuser might require root() privs");
-       }
        if (nsjconf->daemonize && (daemon(0, 0) == -1)) {
                PLOG_F("daemon");
        }