summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/audit.h9
-rw-r--r--include/uapi/linux/audit.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 3a4f2415bb7c..97d0925454df 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -182,6 +182,9 @@ static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
182} 182}
183 183
184extern u32 audit_enabled; 184extern u32 audit_enabled;
185
186extern int audit_signal_info(int sig, struct task_struct *t);
187
185#else /* CONFIG_AUDIT */ 188#else /* CONFIG_AUDIT */
186static inline __printf(4, 5) 189static inline __printf(4, 5)
187void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, 190void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type,
@@ -235,6 +238,12 @@ static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
235} 238}
236 239
237#define audit_enabled AUDIT_OFF 240#define audit_enabled AUDIT_OFF
241
242static inline int audit_signal_info(int sig, struct task_struct *t)
243{
244 return 0;
245}
246
238#endif /* CONFIG_AUDIT */ 247#endif /* CONFIG_AUDIT */
239 248
240#ifdef CONFIG_AUDIT_COMPAT_GENERIC 249#ifdef CONFIG_AUDIT_COMPAT_GENERIC
diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h
index a1280af20336..c89c6495983d 100644
--- a/include/uapi/linux/audit.h
+++ b/include/uapi/linux/audit.h
@@ -281,6 +281,7 @@
281#define AUDIT_OBJ_GID 110 281#define AUDIT_OBJ_GID 110
282#define AUDIT_FIELD_COMPARE 111 282#define AUDIT_FIELD_COMPARE 111
283#define AUDIT_EXE 112 283#define AUDIT_EXE 112
284#define AUDIT_SADDR_FAM 113
284 285
285#define AUDIT_ARG0 200 286#define AUDIT_ARG0 200
286#define AUDIT_ARG1 (AUDIT_ARG0+1) 287#define AUDIT_ARG1 (AUDIT_ARG0+1)