]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: fix debug logging typo
authorArseny Maslennikov <arseny@altlinux.org>
Sun, 15 Oct 2023 08:00:00 +0000 (11:00 +0300)
committerArseny Maslennikov <arseny@altlinux.org>
Thu, 19 Oct 2023 11:07:54 +0000 (14:07 +0300)
Fixes: da4dc9a67487 ("seccomp: rework how the S[UG]ID filter is installed")
src/shared/seccomp-util.c

index 66c564aea2852e025f71796eb9b044840760ba49..afe56d516764815eb5120cf766720923f18f33f8 100644 (file)
@@ -2241,7 +2241,7 @@ int seccomp_restrict_suid_sgid(void) {
 
                 k = seccomp_restrict_sxid(seccomp, S_ISGID);
                 if (k < 0)
-                        log_debug_errno(r, "Failed to add sgid rule for architecture %s, ignoring: %m",
+                        log_debug_errno(k, "Failed to add sgid rule for architecture %s, ignoring: %m",
                                         seccomp_arch_to_string(arch));
 
                 if (r < 0 && k < 0)