1
0
Fork 0

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>
hifive-unleashed-5.1
Alexey Dobriyan 2016-10-29 19:04:39 +03:00 committed by Paul Moore
parent c8d2bc9bc3
commit b4eb4f7f1a
1 changed files with 1 additions and 1 deletions

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