diff options
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index a40641954c29..aa865a9a4c4f 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -137,7 +137,7 @@ static inline void audit_syscall_exit(void *pt_regs) | |||
137 | { | 137 | { |
138 | if (unlikely(current->audit_context)) { | 138 | if (unlikely(current->audit_context)) { |
139 | int success = is_syscall_success(pt_regs); | 139 | int success = is_syscall_success(pt_regs); |
140 | int return_code = regs_return_value(pt_regs); | 140 | long return_code = regs_return_value(pt_regs); |
141 | 141 | ||
142 | __audit_syscall_exit(success, return_code); | 142 | __audit_syscall_exit(success, return_code); |
143 | } | 143 | } |
@@ -202,7 +202,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk) | |||
202 | return tsk->loginuid; | 202 | return tsk->loginuid; |
203 | } | 203 | } |
204 | 204 | ||
205 | static inline int audit_get_sessionid(struct task_struct *tsk) | 205 | static inline unsigned int audit_get_sessionid(struct task_struct *tsk) |
206 | { | 206 | { |
207 | return tsk->sessionid; | 207 | return tsk->sessionid; |
208 | } | 208 | } |
@@ -220,7 +220,7 @@ extern void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); | |||
220 | extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm, | 220 | extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm, |
221 | const struct cred *new, | 221 | const struct cred *new, |
222 | const struct cred *old); | 222 | const struct cred *old); |
223 | extern void __audit_log_capset(pid_t pid, const struct cred *new, const struct cred *old); | 223 | extern void __audit_log_capset(const struct cred *new, const struct cred *old); |
224 | extern void __audit_mmap_fd(int fd, int flags); | 224 | extern void __audit_mmap_fd(int fd, int flags); |
225 | 225 | ||
226 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) | 226 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) |
@@ -285,11 +285,11 @@ static inline int audit_log_bprm_fcaps(struct linux_binprm *bprm, | |||
285 | return 0; | 285 | return 0; |
286 | } | 286 | } |
287 | 287 | ||
288 | static inline void audit_log_capset(pid_t pid, const struct cred *new, | 288 | static inline void audit_log_capset(const struct cred *new, |
289 | const struct cred *old) | 289 | const struct cred *old) |
290 | { | 290 | { |
291 | if (unlikely(!audit_dummy_context())) | 291 | if (unlikely(!audit_dummy_context())) |
292 | __audit_log_capset(pid, new, old); | 292 | __audit_log_capset(new, old); |
293 | } | 293 | } |
294 | 294 | ||
295 | static inline void audit_mmap_fd(int fd, int flags) | 295 | static inline void audit_mmap_fd(int fd, int flags) |
@@ -359,7 +359,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk) | |||
359 | { | 359 | { |
360 | return INVALID_UID; | 360 | return INVALID_UID; |
361 | } | 361 | } |
362 | static inline int audit_get_sessionid(struct task_struct *tsk) | 362 | static inline unsigned int audit_get_sessionid(struct task_struct *tsk) |
363 | { | 363 | { |
364 | return -1; | 364 | return -1; |
365 | } | 365 | } |
@@ -397,8 +397,8 @@ static inline int audit_log_bprm_fcaps(struct linux_binprm *bprm, | |||
397 | { | 397 | { |
398 | return 0; | 398 | return 0; |
399 | } | 399 | } |
400 | static inline void audit_log_capset(pid_t pid, const struct cred *new, | 400 | static inline void audit_log_capset(const struct cred *new, |
401 | const struct cred *old) | 401 | const struct cred *old) |
402 | { } | 402 | { } |
403 | static inline void audit_mmap_fd(int fd, int flags) | 403 | static inline void audit_mmap_fd(int fd, int flags) |
404 | { } | 404 | { } |
@@ -461,9 +461,11 @@ extern int audit_update_lsm_rules(void); | |||
461 | /* Private API (for audit.c only) */ | 461 | /* Private API (for audit.c only) */ |
462 | extern int audit_filter_user(int type); | 462 | extern int audit_filter_user(int type); |
463 | extern int audit_filter_type(int type); | 463 | extern int audit_filter_type(int type); |
464 | extern int audit_receive_filter(int type, int pid, int seq, | 464 | extern int audit_rule_change(int type, __u32 portid, int seq, |
465 | void *data, size_t datasz); | 465 | void *data, size_t datasz); |
466 | extern int audit_enabled; | 466 | extern int audit_list_rules_send(__u32 portid, int seq); |
467 | |||
468 | extern u32 audit_enabled; | ||
467 | #else /* CONFIG_AUDIT */ | 469 | #else /* CONFIG_AUDIT */ |
468 | static inline __printf(4, 5) | 470 | static inline __printf(4, 5) |
469 | void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, | 471 | void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, |