Re: [PATCH] selinux: improve error checking in sel_write_load()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux