···391#ifdef CONFIG_AUDITSYSCALL392/* These are defined in auditsc.c */393 /* Public API */0394extern int audit_alloc(struct task_struct *task);395extern void audit_free(struct task_struct *task);396extern void audit_syscall_entry(int arch,···505extern int audit_n_rules;506extern int audit_signals;507#else0508#define audit_alloc(t) ({ 0; })509#define audit_free(t) do { ; } while (0)510#define audit_syscall_entry(ta,a,b,c,d,e) do { ; } while (0)
···391#ifdef CONFIG_AUDITSYSCALL392/* These are defined in auditsc.c */393 /* Public API */394+extern void audit_finish_fork(struct task_struct *child);395extern int audit_alloc(struct task_struct *task);396extern void audit_free(struct task_struct *task);397extern void audit_syscall_entry(int arch,···504extern int audit_n_rules;505extern int audit_signals;506#else507+#define audit_finish_fork(t)508#define audit_alloc(t) ({ 0; })509#define audit_free(t) do { ; } while (0)510#define audit_syscall_entry(ta,a,b,c,d,e) do { ; } while (0)
+17
kernel/auditsc.c
···1548 context->ppid = 0;1549}1550000000000000000001551/**1552 * audit_syscall_exit - deallocate audit context after a system call1553 * @tsk: task being audited