On Mon, Mar 4, 2024 at 10:12 PM Paul Moore <paul@xxxxxxxxxxxxxx> wrote: > > 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. > > Signed-off-by: Paul Moore <paul@xxxxxxxxxxxxxx> > --- > security/selinux/selinuxfs.c | 30 ++++++++++++++++-------------- > 1 file changed, 16 insertions(+), 14 deletions(-) I realized I forgot to credit Sam for the report. Reported-by: Sam Sun <samsun1006219@xxxxxxxxx> -- paul-moore.com