diff options
author | 2024-03-04 22:12:22 -0500 | |
---|---|---|
committer | 2024-03-26 16:42:09 -0400 | |
commit | 42c773238037c90b3302bf37a57ae3b5c3f6004a (patch) | |
tree | a1c6d8f2408adb036f1b78d627452b3dd56a0285 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selinux: cleanup selinux_lsm_getattr() (diff) | |
download | wireguard-linux-42c773238037c90b3302bf37a57ae3b5c3f6004a.tar.xz wireguard-linux-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 <samsun1006219@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions