Re: [PATCH v2] selinuxfs: use scnprinft to get real length for inode

From: Paul Moore
Date: Mon Jan 06 2020 - 21:09:49 EST


On Mon, Jan 6, 2020 at 8:39 PM liuyang34 <yangliuxm34@xxxxxxxxx> wrote:
>
> as the return value of snprintf maybe over the size of TMPBUFLEN, use scnprintf
> to instead of it in sel_read_class and sel_read_perm
>
> Signed-off-by: liuyang34 <liuyang34@xxxxxxxxxx>
> ---
> security/selinux/selinuxfs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

I corrected the typo in the subject line, and cleaned up the
description a little and merged it into selinux/next - thanks!

--
paul moore
www.paul-moore.com