diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-02-11 23:53:00 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-02-11 23:53:00 +0000 |
commit | bf5780930912202ef1879d5a983834945c1392d5 (patch) | |
tree | 89f4567c37e878578d0038b038de5661131131b5 /sys/security/audit | |
parent | 3879276469cd86052b0b208d25366b25b577e167 (diff) | |
download | FreeBSD-src-bf5780930912202ef1879d5a983834945c1392d5.zip FreeBSD-src-bf5780930912202ef1879d5a983834945c1392d5.tar.gz |
Initialize user process audit ID to AU_DEFAUDITID so that init and
its pre-authentication children are covered by naflags.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/audit')
-rw-r--r-- | sys/security/audit/audit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index bc3a795..457313e 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -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; } /* |