]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Downgrade warning about missing libseccomp
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 28 May 2026 11:49:07 +0000 (13:49 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 May 2026 16:09:19 +0000 (01:09 +0900)
We currently log at warning level:
/usr/lib/systemd/system/systemd-udevd.service:56: System call bpf cannot be
  resolved as libseccomp is not available, ignoring: Operation not supported

In the initrd, or in minimal installations, not installing libseccomp is
reasonable, depending on various other choices. We shouldn't make fuss
about this.

C.f. https://bugzilla.redhat.com/show_bug.cgi?id=2463540.

src/shared/seccomp-util.c

index 0484c68b4cc7e55e580ef1d8cb6fb18c604a8eef..d06dc4f82c15c74efb6ba8817037d94e727f6b0d 100644 (file)
@@ -1339,7 +1339,7 @@ int seccomp_parse_syscall_filter(
                         if (!FLAGS_SET(flags, SECCOMP_PARSE_PERMISSIVE))
                                 return r;
 
-                        log_syntax(unit, FLAGS_SET(flags, SECCOMP_PARSE_LOG) ? LOG_WARNING : LOG_DEBUG, filename, line, r,
+                        log_syntax(unit, FLAGS_SET(flags, SECCOMP_PARSE_LOG) ? LOG_INFO : LOG_DEBUG, filename, line, r,
                                    "System call %s cannot be resolved as libseccomp is not available, ignoring: %m", name);
                         return 0;
                 }