aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/capability.c')
-rw-r--r--kernel/capability.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index e13a68535ad5..19f9eda89975 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -7,6 +7,7 @@
7 * 30 May 2002: Cleanup, Robert M. Love <rml@tech9.net> 7 * 30 May 2002: Cleanup, Robert M. Love <rml@tech9.net>
8 */ 8 */
9 9
10#include <linux/audit.h>
10#include <linux/capability.h> 11#include <linux/capability.h>
11#include <linux/mm.h> 12#include <linux/mm.h>
12#include <linux/module.h> 13#include <linux/module.h>
@@ -468,6 +469,10 @@ asmlinkage long sys_capset(cap_user_header_t header, const cap_user_data_t data)
468 i++; 469 i++;
469 } 470 }
470 471
472 ret = audit_log_capset(pid, &effective, &inheritable, &permitted);
473 if (ret)
474 return ret;
475
471 if (pid && (pid != task_pid_vnr(current))) 476 if (pid && (pid != task_pid_vnr(current)))
472 ret = do_sys_capset_other_tasks(pid, &effective, &inheritable, 477 ret = do_sys_capset_other_tasks(pid, &effective, &inheritable,
473 &permitted); 478 &permitted);