Remove unused ar_subj_comm field from in-kernel audit record; we never
export this via BSM, so don't pay space/time cost of maintaining it. Obtained from: TrustedBSD Project
This commit is contained in:
parent
c137427647
commit
30474b7260
@ -184,7 +184,6 @@ audit_record_ctor(void *mem, int size, void *arg, int flags)
|
||||
ar->k_ar.ar_subj_pid = td->td_proc->p_pid;
|
||||
ar->k_ar.ar_subj_amask = td->td_proc->p_au->ai_mask;
|
||||
ar->k_ar.ar_subj_term_addr = td->td_proc->p_au->ai_termid;
|
||||
bcopy(td->td_proc->p_comm, ar->k_ar.ar_subj_comm, MAXCOMLEN);
|
||||
PROC_UNLOCK(td->td_proc);
|
||||
|
||||
return (0);
|
||||
|
@ -173,7 +173,6 @@ struct audit_record {
|
||||
pid_t ar_subj_pid;
|
||||
struct au_tid ar_subj_term;
|
||||
struct au_tid_addr ar_subj_term_addr;
|
||||
char ar_subj_comm[MAXCOMLEN + 1];
|
||||
struct au_mask ar_subj_amask;
|
||||
|
||||
/* Operation arguments. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user