From b4eb4f7f1a979552e0e9f54d0cef4abd0140beef Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Sat, 29 Oct 2016 19:04:39 +0300 Subject: [PATCH] audit: less stack usage for /proc/*/loginuid %u requires 10 characters at most not 20. Signed-off-by: Alexey Dobriyan Acked-by: Richard Guy Briggs Signed-off-by: Paul Moore --- fs/proc/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index ac0df4dde823..9cdb3e40899a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1228,7 +1228,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) { -- 2.20.1