audit: less stack usage for /proc/*/loginuid
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 29 Oct 2016 16:04:39 +0000 (19:04 +0300)
committerPaul Moore <paul@paul-moore.com>
Thu, 3 Nov 2016 21:20:00 +0000 (17:20 -0400)
%u requires 10 characters at most not 20.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
fs/proc/base.c

index ac0df4dde823866b54480c7062d5188887009365..9cdb3e40899a2abdb6862cda6d47532085a21a7e 100644 (file)
@@ -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)
 {