diff options
Diffstat (limited to 'security/capability.c')
| -rw-r--r-- | security/capability.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/capability.c b/security/capability.c index 579775088967..6783c3e6c88e 100644 --- a/security/capability.c +++ b/security/capability.c | |||
| @@ -737,6 +737,11 @@ static int cap_tun_dev_open(void *security) | |||
| 737 | { | 737 | { |
| 738 | return 0; | 738 | return 0; |
| 739 | } | 739 | } |
| 740 | |||
| 741 | static void cap_skb_owned_by(struct sk_buff *skb, struct sock *sk) | ||
| 742 | { | ||
| 743 | } | ||
| 744 | |||
| 740 | #endif /* CONFIG_SECURITY_NETWORK */ | 745 | #endif /* CONFIG_SECURITY_NETWORK */ |
| 741 | 746 | ||
| 742 | #ifdef CONFIG_SECURITY_NETWORK_XFRM | 747 | #ifdef CONFIG_SECURITY_NETWORK_XFRM |
| @@ -1071,6 +1076,7 @@ void __init security_fixup_ops(struct security_operations *ops) | |||
| 1071 | set_to_cap_if_null(ops, tun_dev_open); | 1076 | set_to_cap_if_null(ops, tun_dev_open); |
| 1072 | set_to_cap_if_null(ops, tun_dev_attach_queue); | 1077 | set_to_cap_if_null(ops, tun_dev_attach_queue); |
| 1073 | set_to_cap_if_null(ops, tun_dev_attach); | 1078 | set_to_cap_if_null(ops, tun_dev_attach); |
| 1079 | set_to_cap_if_null(ops, skb_owned_by); | ||
| 1074 | #endif /* CONFIG_SECURITY_NETWORK */ | 1080 | #endif /* CONFIG_SECURITY_NETWORK */ |
| 1075 | #ifdef CONFIG_SECURITY_NETWORK_XFRM | 1081 | #ifdef CONFIG_SECURITY_NETWORK_XFRM |
| 1076 | set_to_cap_if_null(ops, xfrm_policy_alloc_security); | 1082 | set_to_cap_if_null(ops, xfrm_policy_alloc_security); |
