Message ID | 20241125105926.47141-1-cgoettsche@seltendoof.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/2] lsm: constify function parameters | expand |
diff --git a/security/lsm_audit.c b/security/lsm_audit.c index f1fe99f2221d..429096bf8fe0 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c @@ -299,10 +299,10 @@ static void dump_common_audit_data(struct audit_buffer *ab, if (tsk) { pid_t pid = task_tgid_nr(tsk); if (pid) { - char comm[sizeof(tsk->comm)]; + char tskcomm[sizeof(tsk->comm)]; audit_log_format(ab, " opid=%d ocomm=", pid); audit_log_untrustedstring(ab, - memcpy(comm, tsk->comm, sizeof(comm))); + memcpy(tskcomm, tsk->comm, sizeof(tskcomm))); } } break;