aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorPaul Moore <[email protected]>2024-03-05 03:12:22 +0000
committerPaul Moore <[email protected]>2024-03-26 20:42:09 +0000
commit42c773238037c90b3302bf37a57ae3b5c3f6004a (patch)
treea1c6d8f2408adb036f1b78d627452b3dd56a0285 /security/selinux/hooks.c
parentselinux: cleanup selinux_lsm_getattr() (diff)
downloadkernel-42c773238037c90b3302bf37a57ae3b5c3f6004a.tar.gz
kernel-42c773238037c90b3302bf37a57ae3b5c3f6004a.zip
selinux: improve error checking in sel_write_load()
Move our existing input sanity checking to the top of sel_write_load() and add a check to ensure the buffer size is non-zero. Move a local variable initialization from the declaration to before it is used. Minor style adjustments. Reported-by: Sam Sun <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions