diff options
| author | Christian Göttsche <[email protected]> | 2024-03-27 19:25:57 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2024-03-27 20:44:35 +0000 |
| commit | 4b3124de63c6b1b38fc791c279c25e1811ca114d (patch) | |
| tree | a92c286664bbb24f76e40e616f30a58a8200410f /security/selinux/hooks.c | |
| parent | selinux: improve error checking in sel_write_load() (diff) | |
| download | kernel-4b3124de63c6b1b38fc791c279c25e1811ca114d.tar.gz kernel-4b3124de63c6b1b38fc791c279c25e1811ca114d.zip | |
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 <[email protected]>
Closes: https://lore.kernel.org/linux-next/[email protected]/
Signed-off-by: Christian Göttsche <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
