Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'audit-pr-20241205' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit

Pull audit build problem workaround from Paul Moore:
"A minor audit patch that shuffles some code slightly to workaround a
GCC bug affecting a number of people.

The GCC folks have been able to reproduce the problem and are
discussing solutions (see the bug report link in the commit), but
since the workaround is trivial let's do that in the kernel so we can
unblock people who are hitting this"

* tag 'audit-pr-20241205' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
audit: workaround a GCC bug triggered by task comm changes

+2 -2
+2 -2
kernel/auditsc.c
··· 2728 2728 context->target_auid = audit_get_loginuid(t); 2729 2729 context->target_uid = task_uid(t); 2730 2730 context->target_sessionid = audit_get_sessionid(t); 2731 - security_task_getlsmprop_obj(t, &context->target_ref); 2732 2731 strscpy(context->target_comm, t->comm); 2732 + security_task_getlsmprop_obj(t, &context->target_ref); 2733 2733 } 2734 2734 2735 2735 /** ··· 2755 2755 ctx->target_auid = audit_get_loginuid(t); 2756 2756 ctx->target_uid = t_uid; 2757 2757 ctx->target_sessionid = audit_get_sessionid(t); 2758 - security_task_getlsmprop_obj(t, &ctx->target_ref); 2759 2758 strscpy(ctx->target_comm, t->comm); 2759 + security_task_getlsmprop_obj(t, &ctx->target_ref); 2760 2760 return 0; 2761 2761 } 2762 2762