Initialize user process audit ID to AU_DEFAUDITID so that init and

its pre-authentication children are covered by naflags.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2006-02-11 23:53:00 +00:00
parent 478ea42db6
commit ba7f6690f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155558

View file

@ -1059,6 +1059,7 @@ audit_proc_init(struct proc *p)
p->p_pid));
//printf("audit_proc_init: pid %d p_au %p\n", p->p_pid, p->p_au);
bzero(p->p_au, sizeof(*(p)->p_au));
p->p_au->ai_auid = AU_DEFAUDITID;
}
/*