[PATCH] audit: less stack usage for /proc/*/loginuid
Paul Moore
paul at paul-moore.com
Thu Nov 3 21:28:45 UTC 2016
On Sat, Oct 29, 2016 at 12:04 PM, Alexey Dobriyan <adobriyan at gmail.com> wrote:
> %u requires 10 characters at most not 20.
>
> Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
> ---
>
> fs/proc/base.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Looks reasonable to me, merged. Thanks.
> --- a/fs/proc/base.c
> +++ b/fs/proc/base.c
> @@ -1243,7 +1243,7 @@ static const struct file_operations proc_oom_score_adj_operations = {
> };
>
> #ifdef CONFIG_AUDITSYSCALL
> -#define TMPBUFLEN 21
> +#define TMPBUFLEN 11
> static ssize_t proc_loginuid_read(struct file * file, char __user * buf,
> size_t count, loff_t *ppos)
> {
--
paul moore
www.paul-moore.com
More information about the Linux-audit
mailing list