]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: respect quiet on capabilities warning
authorJustin Trudell <justin.trudell.4@gmail.com>
Fri, 1 Nov 2019 19:00:16 +0000 (12:00 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 3 Nov 2019 13:05:48 +0000 (22:05 +0900)
src/nspawn/nspawn.c

index 070a10fbebbbb849b47b1449ba8d0587c5f14945..3513c015b8204ae60f63c10b7c4543e65315426a 100644 (file)
@@ -2390,7 +2390,8 @@ static int drop_capabilities(uid_t uid) {
                 /* If we're not using OCI, proceed with mangled capabilities (so we don't error out)
                  * in order to maintain the same behavior as systemd < 242. */
                 if (capability_quintet_mangle(&q))
-                        log_warning("Some capabilities will not be set because they are not in the current bounding set.");
+                        log_full(arg_quiet ? LOG_DEBUG : LOG_WARNING,
+                                 "Some capabilities will not be set because they are not in the current bounding set.");
 
         }