mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
tty_audit: use TASK_COMM_LEN for task comm
This is the preferred way of declaring an array for get_task_comm(). Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230621101611.10580-2-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a82d62f708
commit
777e456852
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue