nspawn: respect quiet on capabilities warning

This commit is contained in:
Justin Trudell
2019-11-03 22:05:48 +09:00
committed by Yu Watanabe
parent fe573a798d
commit 0ccdaa79ca
+2 -1
View 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.");
}