public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH] audit: less stack usage for /proc/*/loginuid
@ 2016-10-29 16:04 Alexey Dobriyan
  2016-11-02  6:10 ` Richard Guy Briggs
  2016-11-03 21:28 ` Paul Moore
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2016-10-29 16:04 UTC (permalink / raw)
  To: paul, eparis; +Cc: linux-audit

%u requires 10 characters at most not 20.

Signed-off-by: Alexey Dobriyan <adobriyan@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)
 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-03 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 16:04 [PATCH] audit: less stack usage for /proc/*/loginuid Alexey Dobriyan
2016-11-02  6:10 ` Richard Guy Briggs
2016-11-03 21:28 ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox