summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2024-03-05 06:12:22 +0300
committerPaul Moore <paul@paul-moore.com>2024-03-26 23:42:09 +0300
commit42c773238037c90b3302bf37a57ae3b5c3f6004a (patch)
treea1c6d8f2408adb036f1b78d627452b3dd56a0285 /scripts/gdb/linux/utils.py
parente6b5ebca41dda07b76b244462995502d9f6eb10b (diff)
downloadlinux-42c773238037c90b3302bf37a57ae3b5c3f6004a.tar.xz
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 <samsun1006219@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions