]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
apparmor: fix AA_DEBUG_LABEL()
authorJohn Johansen <john.johansen@canonical.com>
Sat, 14 Jun 2025 20:49:34 +0000 (13:49 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 16 Jul 2025 05:39:43 +0000 (22:39 -0700)
AA_DEBUG_LABEL() was not specifying it vargs, which is needed so it can
output debug parameters.

Fixes: 71e6cff3e0dd ("apparmor: Improve debug print infrastructure")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/lib.h

index 200cf36c5e0a14bed77dad39694b57f23c8c4cb0..444197075fd6b57928fbec39bb094622a544be8c 100644 (file)
@@ -42,7 +42,7 @@ extern struct aa_dfa *stacksplitdfa;
                if (aa_g_debug & opt)                                   \
                        pr_warn_ratelimited("%s: " fmt, __func__, ##args); \
        } while (0)
-#define AA_DEBUG_LABEL(LAB, X, fmt, args)                              \
+#define AA_DEBUG_LABEL(LAB, X, fmt, args...)                           \
 do {                                                                   \
        if ((LAB)->flags & FLAG_DEBUG1)                                 \
                AA_DEBUG(X, fmt, args);                                 \