diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/audit.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index bd59cd1e3219..7ddcb6a29eb1 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
| @@ -457,7 +457,7 @@ extern void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); | |||
| 457 | extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm, | 457 | extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm, |
| 458 | const struct cred *new, | 458 | const struct cred *new, |
| 459 | const struct cred *old); | 459 | const struct cred *old); |
| 460 | extern int __audit_log_capset(pid_t pid, const struct cred *new, const struct cred *old); | 460 | extern void __audit_log_capset(pid_t pid, const struct cred *new, const struct cred *old); |
| 461 | 461 | ||
| 462 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) | 462 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) |
| 463 | { | 463 | { |
| @@ -504,12 +504,11 @@ static inline int audit_log_bprm_fcaps(struct linux_binprm *bprm, | |||
| 504 | return 0; | 504 | return 0; |
| 505 | } | 505 | } |
| 506 | 506 | ||
| 507 | static inline int audit_log_capset(pid_t pid, const struct cred *new, | 507 | static inline void audit_log_capset(pid_t pid, const struct cred *new, |
| 508 | const struct cred *old) | 508 | const struct cred *old) |
| 509 | { | 509 | { |
| 510 | if (unlikely(!audit_dummy_context())) | 510 | if (unlikely(!audit_dummy_context())) |
| 511 | return __audit_log_capset(pid, new, old); | 511 | __audit_log_capset(pid, new, old); |
| 512 | return 0; | ||
| 513 | } | 512 | } |
| 514 | 513 | ||
| 515 | extern int audit_n_rules; | 514 | extern int audit_n_rules; |
| @@ -544,7 +543,7 @@ extern int audit_signals; | |||
| 544 | #define audit_mq_notify(d,n) ((void)0) | 543 | #define audit_mq_notify(d,n) ((void)0) |
| 545 | #define audit_mq_getsetattr(d,s) ((void)0) | 544 | #define audit_mq_getsetattr(d,s) ((void)0) |
| 546 | #define audit_log_bprm_fcaps(b, ncr, ocr) ({ 0; }) | 545 | #define audit_log_bprm_fcaps(b, ncr, ocr) ({ 0; }) |
| 547 | #define audit_log_capset(pid, ncr, ocr) ({ 0; }) | 546 | #define audit_log_capset(pid, ncr, ocr) ((void)0) |
| 548 | #define audit_ptrace(t) ((void)0) | 547 | #define audit_ptrace(t) ((void)0) |
| 549 | #define audit_n_rules 0 | 548 | #define audit_n_rules 0 |
| 550 | #define audit_signals 0 | 549 | #define audit_signals 0 |
