projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tty_audit: use TASK_COMM_LEN for task comm
[platform/kernel/linux-rpi.git]
/
drivers
/
tty
/
tty_audit.c
diff --git
a/drivers/tty/tty_audit.c
b/drivers/tty/tty_audit.c
index
ca7afd7
..
b98b1ae
100644
(file)
--- a/
drivers/tty/tty_audit.c
+++ b/
drivers/tty/tty_audit.c
@@
-69,7
+69,7
@@
static void tty_audit_log(const char *description, dev_t dev,
ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_TTY);
if (ab) {
- char name[
sizeof(current->comm)
];
+ char name[
TASK_COMM_LEN
];
audit_log_format(ab, "%s pid=%u uid=%u auid=%u ses=%u major=%d"
" minor=%d comm=", description, pid, uid,