diff options
Diffstat (limited to 'security/capability.c')
-rw-r--r-- | security/capability.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/security/capability.c b/security/capability.c index d68c57a62bcf..070dd46f62f4 100644 --- a/security/capability.c +++ b/security/capability.c | |||
@@ -12,6 +12,29 @@ | |||
12 | 12 | ||
13 | #include <linux/security.h> | 13 | #include <linux/security.h> |
14 | 14 | ||
15 | static int cap_binder_set_context_mgr(struct task_struct *mgr) | ||
16 | { | ||
17 | return 0; | ||
18 | } | ||
19 | |||
20 | static int cap_binder_transaction(struct task_struct *from, | ||
21 | struct task_struct *to) | ||
22 | { | ||
23 | return 0; | ||
24 | } | ||
25 | |||
26 | static int cap_binder_transfer_binder(struct task_struct *from, | ||
27 | struct task_struct *to) | ||
28 | { | ||
29 | return 0; | ||
30 | } | ||
31 | |||
32 | static int cap_binder_transfer_file(struct task_struct *from, | ||
33 | struct task_struct *to, struct file *file) | ||
34 | { | ||
35 | return 0; | ||
36 | } | ||
37 | |||
15 | static int cap_syslog(int type) | 38 | static int cap_syslog(int type) |
16 | { | 39 | { |
17 | return 0; | 40 | return 0; |
@@ -930,6 +953,10 @@ static void cap_audit_rule_free(void *lsmrule) | |||
930 | 953 | ||
931 | void __init security_fixup_ops(struct security_operations *ops) | 954 | void __init security_fixup_ops(struct security_operations *ops) |
932 | { | 955 | { |
956 | set_to_cap_if_null(ops, binder_set_context_mgr); | ||
957 | set_to_cap_if_null(ops, binder_transaction); | ||
958 | set_to_cap_if_null(ops, binder_transfer_binder); | ||
959 | set_to_cap_if_null(ops, binder_transfer_file); | ||
933 | set_to_cap_if_null(ops, ptrace_access_check); | 960 | set_to_cap_if_null(ops, ptrace_access_check); |
934 | set_to_cap_if_null(ops, ptrace_traceme); | 961 | set_to_cap_if_null(ops, ptrace_traceme); |
935 | set_to_cap_if_null(ops, capget); | 962 | set_to_cap_if_null(ops, capget); |