0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef CN_PROC_H
0018 #define CN_PROC_H
0019
0020 #include <uapi/linux/cn_proc.h>
0021
0022 #ifdef CONFIG_PROC_EVENTS
0023 void proc_fork_connector(struct task_struct *task);
0024 void proc_exec_connector(struct task_struct *task);
0025 void proc_id_connector(struct task_struct *task, int which_id);
0026 void proc_sid_connector(struct task_struct *task);
0027 void proc_ptrace_connector(struct task_struct *task, int which_id);
0028 void proc_comm_connector(struct task_struct *task);
0029 void proc_coredump_connector(struct task_struct *task);
0030 void proc_exit_connector(struct task_struct *task);
0031 #else
0032 static inline void proc_fork_connector(struct task_struct *task)
0033 {}
0034
0035 static inline void proc_exec_connector(struct task_struct *task)
0036 {}
0037
0038 static inline void proc_id_connector(struct task_struct *task,
0039 int which_id)
0040 {}
0041
0042 static inline void proc_sid_connector(struct task_struct *task)
0043 {}
0044
0045 static inline void proc_comm_connector(struct task_struct *task)
0046 {}
0047
0048 static inline void proc_ptrace_connector(struct task_struct *task,
0049 int ptrace_id)
0050 {}
0051
0052 static inline void proc_coredump_connector(struct task_struct *task)
0053 {}
0054
0055 static inline void proc_exit_connector(struct task_struct *task)
0056 {}
0057 #endif
0058 #endif