aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-03-27 20:25:57 +0100
committerPaul Moore <paul@paul-moore.com>2024-03-27 16:44:35 -0400
commit4b3124de63c6b1b38fc791c279c25e1811ca114d (patch)
treea92c286664bbb24f76e40e616f30a58a8200410f /lib/string_helpers.c
parent42c773238037c90b3302bf37a57ae3b5c3f6004a (diff)
selinux: update numeric format specifiers for ebitmaps
Use the correct, according to Documentation/core-api/printk-formats.rst, format specifiers for numeric arguments in string formatting. The general bit type is u32 thus use %u, EBITMAP_SIZE is a constant computed via sizeof() thus use %zu. Fixes: 0142c56682fb ("selinux: reject invalid ebitmaps") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/linux-next/20240327131044.2c629921@canb.auug.org.au/ Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions