Commit b4eb4f7f authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Paul Moore

audit: less stack usage for /proc/*/loginuid

%u requires 10 characters at most not 20.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent c8d2bc9b
...@@ -1228,7 +1228,7 @@ static const struct file_operations proc_oom_score_adj_operations = { ...@@ -1228,7 +1228,7 @@ static const struct file_operations proc_oom_score_adj_operations = {
}; };
#ifdef CONFIG_AUDITSYSCALL #ifdef CONFIG_AUDITSYSCALL
#define TMPBUFLEN 21 #define TMPBUFLEN 11
static ssize_t proc_loginuid_read(struct file * file, char __user * buf, static ssize_t proc_loginuid_read(struct file * file, char __user * buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment