summaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2016-10-29 19:04:39 +0300
committerPaul Moore <paul@paul-moore.com>2016-11-03 17:20:00 -0400
commitb4eb4f7f1a979552e0e9f54d0cef4abd0140beef (patch)
tree255c737a11aae78af8dab505fbda3cd509548195 /fs/proc
parentc8d2bc9bc39ebea8437fd974fdbc21847bb897a3 (diff)
downloadop-kernel-dev-b4eb4f7f1a979552e0e9f54d0cef4abd0140beef.zip
op-kernel-dev-b4eb4f7f1a979552e0e9f54d0cef4abd0140beef.tar.gz
audit: less stack usage for /proc/*/loginuid
%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>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index ac0df4d..9cdb3e4 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)
{
OpenPOWER on IntegriCloud