@@ -145,7 +145,10 @@ struct audit_context {
kuid_t target_uid;
unsigned int target_sessionid;
struct lsm_prop target_ref;
- char target_comm[TASK_COMM_LEN];
+
+ struct_group(comm,
+ char target_comm[TASK_COMM_LEN];
+ );
struct audit_tree_refs *trees, *first_trees;
struct list_head killed_trees;
@@ -2729,7 +2729,7 @@ void __audit_ptrace(struct task_struct *t)
context->target_uid = task_uid(t);
context->target_sessionid = audit_get_sessionid(t);
security_task_getlsmprop_obj(t, &context->target_ref);
- memcpy(context->target_comm, t->comm, TASK_COMM_LEN);
+ memcpy(&context->comm, t->comm, TASK_COMM_LEN);
}
/**
@@ -2756,7 +2756,7 @@ int audit_signal_info_syscall(struct task_struct *t)
ctx->target_uid = t_uid;
ctx->target_sessionid = audit_get_sessionid(t);
security_task_getlsmprop_obj(t, &ctx->target_ref);
- memcpy(ctx->target_comm, t->comm, TASK_COMM_LEN);
+ memcpy(&ctx->comm, t->comm, TASK_COMM_LEN);
return 0;
}