Index: linux/kernel/acct.c =================================================================== --- linux.orig/kernel/acct.c 2005-02-24 15:55:05.519092861 -0800 +++ linux/kernel/acct.c 2005-02-24 16:33:56.381584083 -0800 @@ -73,6 +73,11 @@ int acct_parm[3] = {4, 2, 30}; /* * External references and all of the globals. */ + +/* do_exit hook used by CSA */ +void (*do_exit_csa)(int, struct task_struct *) = NULL; +EXPORT_SYMBOL_GPL(do_exit_csa); + static void do_acct_process(long, struct file *); /* @@ -504,12 +509,17 @@ static void do_acct_process(long exitcod } /* - * acct_process - now just a wrapper around do_acct_process + * acct_process - now just a wrapper around + * do_acct_process - for BSD accounting + * do_exit_csa - for CSA */ void acct_process(long exitcode) { struct file *file = NULL; + if (do_exit_csa != NULL) + do_exit_csa(exitcode, current); + /* * accelerate the common fastpath: */