aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/netlabel.h')
-rw-r--r--include/net/netlabel.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index 749011eedc0b..bdb10e5183d5 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -36,6 +36,7 @@
36#include <linux/in.h> 36#include <linux/in.h>
37#include <linux/in6.h> 37#include <linux/in6.h>
38#include <net/netlink.h> 38#include <net/netlink.h>
39#include <net/request_sock.h>
39#include <asm/atomic.h> 40#include <asm/atomic.h>
40 41
41struct cipso_v4_doi; 42struct cipso_v4_doi;
@@ -406,6 +407,7 @@ int netlbl_secattr_catmap_setrng(struct netlbl_lsm_secattr_catmap *catmap,
406 */ 407 */
407int netlbl_enabled(void); 408int netlbl_enabled(void);
408int netlbl_sock_setattr(struct sock *sk, 409int netlbl_sock_setattr(struct sock *sk,
410 u16 family,
409 const struct netlbl_lsm_secattr *secattr); 411 const struct netlbl_lsm_secattr *secattr);
410void netlbl_sock_delattr(struct sock *sk); 412void netlbl_sock_delattr(struct sock *sk);
411int netlbl_sock_getattr(struct sock *sk, 413int netlbl_sock_getattr(struct sock *sk,
@@ -413,6 +415,8 @@ int netlbl_sock_getattr(struct sock *sk,
413int netlbl_conn_setattr(struct sock *sk, 415int netlbl_conn_setattr(struct sock *sk,
414 struct sockaddr *addr, 416 struct sockaddr *addr,
415 const struct netlbl_lsm_secattr *secattr); 417 const struct netlbl_lsm_secattr *secattr);
418int netlbl_req_setattr(struct request_sock *req,
419 const struct netlbl_lsm_secattr *secattr);
416int netlbl_skbuff_setattr(struct sk_buff *skb, 420int netlbl_skbuff_setattr(struct sk_buff *skb,
417 u16 family, 421 u16 family,
418 const struct netlbl_lsm_secattr *secattr); 422 const struct netlbl_lsm_secattr *secattr);
@@ -519,7 +523,8 @@ static inline int netlbl_enabled(void)
519 return 0; 523 return 0;
520} 524}
521static inline int netlbl_sock_setattr(struct sock *sk, 525static inline int netlbl_sock_setattr(struct sock *sk,
522 const struct netlbl_lsm_secattr *secattr) 526 u16 family,
527 const struct netlbl_lsm_secattr *secattr)
523{ 528{
524 return -ENOSYS; 529 return -ENOSYS;
525} 530}
@@ -537,6 +542,11 @@ static inline int netlbl_conn_setattr(struct sock *sk,
537{ 542{
538 return -ENOSYS; 543 return -ENOSYS;
539} 544}
545static inline int netlbl_req_setattr(struct request_sock *req,
546 const struct netlbl_lsm_secattr *secattr)
547{
548 return -ENOSYS;
549}
540static inline int netlbl_skbuff_setattr(struct sk_buff *skb, 550static inline int netlbl_skbuff_setattr(struct sk_buff *skb,
541 u16 family, 551 u16 family,
542 const struct netlbl_lsm_secattr *secattr) 552 const struct netlbl_lsm_secattr *secattr)