diff options
| author | John Johansen <john.johansen@canonical.com> | 2026-02-03 04:47:32 -0800 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-02-03 04:47:32 -0800 |
| commit | 1b51bd761599b84e963d9cb510e7c7d8fbf9d1ee (patch) | |
| tree | b33c2e5cee9914ea50734a415113aad2e8f39499 /security | |
| parent | 9058798652c8bc0584ed1fb0766a1015046c06e8 (diff) | |
apparmor: fix cast in format string DEBUG statement
if debugging is enabled the DEBUG statement will fail do to a bad
fat fingered cast.
Fixes: 102ada7ca37ed ("apparmor: fix fmt string type error in process_strs_entry")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security')
| -rw-r--r-- | security/apparmor/policy_unpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index 175445c09896..e68adf39771f 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c @@ -546,7 +546,7 @@ static int unpack_strs_table(struct aa_ext *e, const char *name, bool multi, if (c <= 0) { AA_DEBUG(DEBUG_UNPACK, "process_strs %d i %d pos %ld", c, i, - (unsigned_long) e->pos - saved_pos); + (unsigned long)(e->pos - saved_pos)); goto fail; } if (!multi && c > 1) { |
