[PATCH] audit: less stack usage for /proc/*/loginuid

Alexey Dobriyan adobriyan at gmail.com
Sat Oct 29 16:04:39 UTC 2016


%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(-)

--- 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)
 {




More information about the Linux-audit mailing list