diff options
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 6fbebac7b1bf..0b2fcb698a63 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -454,8 +454,10 @@ extern int __audit_mq_timedsend(mqd_t mqdes, size_t msg_len, unsigned int msg_pr | |||
454 | extern int __audit_mq_timedreceive(mqd_t mqdes, size_t msg_len, unsigned int __user *u_msg_prio, const struct timespec __user *u_abs_timeout); | 454 | extern int __audit_mq_timedreceive(mqd_t mqdes, size_t msg_len, unsigned int __user *u_msg_prio, const struct timespec __user *u_abs_timeout); |
455 | extern int __audit_mq_notify(mqd_t mqdes, const struct sigevent __user *u_notification); | 455 | extern int __audit_mq_notify(mqd_t mqdes, const struct sigevent __user *u_notification); |
456 | extern int __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); | 456 | extern int __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); |
457 | extern void __audit_log_bprm_fcaps(struct linux_binprm *bprm, kernel_cap_t *pP, kernel_cap_t *pE); | 457 | extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm, |
458 | extern int __audit_log_capset(pid_t pid, kernel_cap_t *eff, kernel_cap_t *inh, kernel_cap_t *perm); | 458 | const struct cred *new, |
459 | const struct cred *old); | ||
460 | extern int __audit_log_capset(pid_t pid, const struct cred *new, const struct cred *old); | ||
459 | 461 | ||
460 | static inline int audit_ipc_obj(struct kern_ipc_perm *ipcp) | 462 | static inline int audit_ipc_obj(struct kern_ipc_perm *ipcp) |
461 | { | 463 | { |
@@ -522,16 +524,20 @@ static inline int audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) | |||
522 | * | 524 | * |
523 | * -Eric | 525 | * -Eric |
524 | */ | 526 | */ |
525 | static inline void audit_log_bprm_fcaps(struct linux_binprm *bprm, kernel_cap_t *pP, kernel_cap_t *pE) | 527 | static inline int audit_log_bprm_fcaps(struct linux_binprm *bprm, |
528 | const struct cred *new, | ||
529 | const struct cred *old) | ||
526 | { | 530 | { |
527 | if (unlikely(!audit_dummy_context())) | 531 | if (unlikely(!audit_dummy_context())) |
528 | __audit_log_bprm_fcaps(bprm, pP, pE); | 532 | return __audit_log_bprm_fcaps(bprm, new, old); |
533 | return 0; | ||
529 | } | 534 | } |
530 | 535 | ||
531 | static inline int audit_log_capset(pid_t pid, kernel_cap_t *eff, kernel_cap_t *inh, kernel_cap_t *perm) | 536 | static inline int audit_log_capset(pid_t pid, const struct cred *new, |
537 | const struct cred *old) | ||
532 | { | 538 | { |
533 | if (unlikely(!audit_dummy_context())) | 539 | if (unlikely(!audit_dummy_context())) |
534 | return __audit_log_capset(pid, eff, inh, perm); | 540 | return __audit_log_capset(pid, new, old); |
535 | return 0; | 541 | return 0; |
536 | } | 542 | } |
537 | 543 | ||
@@ -566,8 +572,8 @@ extern int audit_signals; | |||
566 | #define audit_mq_timedreceive(d,l,p,t) ({ 0; }) | 572 | #define audit_mq_timedreceive(d,l,p,t) ({ 0; }) |
567 | #define audit_mq_notify(d,n) ({ 0; }) | 573 | #define audit_mq_notify(d,n) ({ 0; }) |
568 | #define audit_mq_getsetattr(d,s) ({ 0; }) | 574 | #define audit_mq_getsetattr(d,s) ({ 0; }) |
569 | #define audit_log_bprm_fcaps(b, p, e) do { ; } while (0) | 575 | #define audit_log_bprm_fcaps(b, ncr, ocr) ({ 0; }) |
570 | #define audit_log_capset(pid, e, i, p) ({ 0; }) | 576 | #define audit_log_capset(pid, ncr, ocr) ({ 0; }) |
571 | #define audit_ptrace(t) ((void)0) | 577 | #define audit_ptrace(t) ((void)0) |
572 | #define audit_n_rules 0 | 578 | #define audit_n_rules 0 |
573 | #define audit_signals 0 | 579 | #define audit_signals 0 |