diff options
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 73f1ef625d40..2ff5f5777a53 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -115,6 +115,7 @@ struct xfrm_policy; | |||
115 | struct xfrm_state; | 115 | struct xfrm_state; |
116 | struct xfrm_user_sec_ctx; | 116 | struct xfrm_user_sec_ctx; |
117 | struct seq_file; | 117 | struct seq_file; |
118 | struct sctp_endpoint; | ||
118 | 119 | ||
119 | #ifdef CONFIG_MMU | 120 | #ifdef CONFIG_MMU |
120 | extern unsigned long mmap_min_addr; | 121 | extern unsigned long mmap_min_addr; |
@@ -1229,6 +1230,11 @@ int security_tun_dev_create(void); | |||
1229 | int security_tun_dev_attach_queue(void *security); | 1230 | int security_tun_dev_attach_queue(void *security); |
1230 | int security_tun_dev_attach(struct sock *sk, void *security); | 1231 | int security_tun_dev_attach(struct sock *sk, void *security); |
1231 | int security_tun_dev_open(void *security); | 1232 | int security_tun_dev_open(void *security); |
1233 | int security_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb); | ||
1234 | int security_sctp_bind_connect(struct sock *sk, int optname, | ||
1235 | struct sockaddr *address, int addrlen); | ||
1236 | void security_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, | ||
1237 | struct sock *newsk); | ||
1232 | 1238 | ||
1233 | #else /* CONFIG_SECURITY_NETWORK */ | 1239 | #else /* CONFIG_SECURITY_NETWORK */ |
1234 | static inline int security_unix_stream_connect(struct sock *sock, | 1240 | static inline int security_unix_stream_connect(struct sock *sock, |
@@ -1421,6 +1427,25 @@ static inline int security_tun_dev_open(void *security) | |||
1421 | { | 1427 | { |
1422 | return 0; | 1428 | return 0; |
1423 | } | 1429 | } |
1430 | |||
1431 | static inline int security_sctp_assoc_request(struct sctp_endpoint *ep, | ||
1432 | struct sk_buff *skb) | ||
1433 | { | ||
1434 | return 0; | ||
1435 | } | ||
1436 | |||
1437 | static inline int security_sctp_bind_connect(struct sock *sk, int optname, | ||
1438 | struct sockaddr *address, | ||
1439 | int addrlen) | ||
1440 | { | ||
1441 | return 0; | ||
1442 | } | ||
1443 | |||
1444 | static inline void security_sctp_sk_clone(struct sctp_endpoint *ep, | ||
1445 | struct sock *sk, | ||
1446 | struct sock *newsk) | ||
1447 | { | ||
1448 | } | ||
1424 | #endif /* CONFIG_SECURITY_NETWORK */ | 1449 | #endif /* CONFIG_SECURITY_NETWORK */ |
1425 | 1450 | ||
1426 | #ifdef CONFIG_SECURITY_INFINIBAND | 1451 | #ifdef CONFIG_SECURITY_INFINIBAND |