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 128e1e4a5346..17ffd1ef6074 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -112,6 +112,7 @@ struct xfrm_policy; | |||
112 | struct xfrm_state; | 112 | struct xfrm_state; |
113 | struct xfrm_user_sec_ctx; | 113 | struct xfrm_user_sec_ctx; |
114 | struct seq_file; | 114 | struct seq_file; |
115 | struct sctp_endpoint; | ||
115 | 116 | ||
116 | #ifdef CONFIG_MMU | 117 | #ifdef CONFIG_MMU |
117 | extern unsigned long mmap_min_addr; | 118 | extern unsigned long mmap_min_addr; |
@@ -1226,6 +1227,11 @@ int security_tun_dev_create(void); | |||
1226 | int security_tun_dev_attach_queue(void *security); | 1227 | int security_tun_dev_attach_queue(void *security); |
1227 | int security_tun_dev_attach(struct sock *sk, void *security); | 1228 | int security_tun_dev_attach(struct sock *sk, void *security); |
1228 | int security_tun_dev_open(void *security); | 1229 | int security_tun_dev_open(void *security); |
1230 | int security_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb); | ||
1231 | int security_sctp_bind_connect(struct sock *sk, int optname, | ||
1232 | struct sockaddr *address, int addrlen); | ||
1233 | void security_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, | ||
1234 | struct sock *newsk); | ||
1229 | 1235 | ||
1230 | #else /* CONFIG_SECURITY_NETWORK */ | 1236 | #else /* CONFIG_SECURITY_NETWORK */ |
1231 | static inline int security_unix_stream_connect(struct sock *sock, | 1237 | static inline int security_unix_stream_connect(struct sock *sock, |
@@ -1418,6 +1424,25 @@ static inline int security_tun_dev_open(void *security) | |||
1418 | { | 1424 | { |
1419 | return 0; | 1425 | return 0; |
1420 | } | 1426 | } |
1427 | |||
1428 | static inline int security_sctp_assoc_request(struct sctp_endpoint *ep, | ||
1429 | struct sk_buff *skb) | ||
1430 | { | ||
1431 | return 0; | ||
1432 | } | ||
1433 | |||
1434 | static inline int security_sctp_bind_connect(struct sock *sk, int optname, | ||
1435 | struct sockaddr *address, | ||
1436 | int addrlen) | ||
1437 | { | ||
1438 | return 0; | ||
1439 | } | ||
1440 | |||
1441 | static inline void security_sctp_sk_clone(struct sctp_endpoint *ep, | ||
1442 | struct sock *sk, | ||
1443 | struct sock *newsk) | ||
1444 | { | ||
1445 | } | ||
1421 | #endif /* CONFIG_SECURITY_NETWORK */ | 1446 | #endif /* CONFIG_SECURITY_NETWORK */ |
1422 | 1447 | ||
1423 | #ifdef CONFIG_SECURITY_INFINIBAND | 1448 | #ifdef CONFIG_SECURITY_INFINIBAND |