diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2016-10-29 19:04:39 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-11-03 17:20:00 -0400 |
commit | b4eb4f7f1a979552e0e9f54d0cef4abd0140beef (patch) | |
tree | 255c737a11aae78af8dab505fbda3cd509548195 /fs/proc/base.c | |
parent | c8d2bc9bc39ebea8437fd974fdbc21847bb897a3 (diff) | |
download | linux-b4eb4f7f1a979552e0e9f54d0cef4abd0140beef.tar.bz2 |
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/base.c')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |