cvs commit: src/sys/kern kern_exit.c kern_fork.c
rwatson at FreeBSD.org
Thu Feb 2 11:04:32 PST 2006
On Thu, 2 Feb 2006, Julian Elischer wrote:
> Robert Watson wrote:
>> rwatson 2006-02-02 01:32:58 UTC
>> FreeBSD src repository
>> Modified files:
>> sys/kern kern_exit.c kern_fork.c Log:
>> Hook up audit to fork() and exit() events. These changes manage the
>> audit state on processes, not auditing of these events.
>> Much work by: wsalamon
>> Obtained from: TrustedBSD Project
>> Revision Changes Path
>> 1.277 +5 -0 src/sys/kern/kern_exit.c
>> 1.254 +11 -1 src/sys/kern/kern_fork.c
> shouldn't these be implemented by supplying event handlers for exit and fork
> instead of adding code to exit and fork themselves?
This is made tricky by the complex nature of fork() and the need to do things
in specific orders during fork. However, it should be possible to move the
MAC and AUDIT allocation and free code into the proc ctor and proc dtor, and
think about adding new event handlers for those two events.
Robert N M Watson
More information about the cvs-src