diff options
Diffstat (limited to 'include/net/netlabel.h')
-rw-r--r-- | include/net/netlabel.h | 12 |
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 | ||
41 | struct cipso_v4_doi; | 42 | struct cipso_v4_doi; |
@@ -406,6 +407,7 @@ int netlbl_secattr_catmap_setrng(struct netlbl_lsm_secattr_catmap *catmap, | |||
406 | */ | 407 | */ |
407 | int netlbl_enabled(void); | 408 | int netlbl_enabled(void); |
408 | int netlbl_sock_setattr(struct sock *sk, | 409 | int netlbl_sock_setattr(struct sock *sk, |
410 | u16 family, | ||
409 | const struct netlbl_lsm_secattr *secattr); | 411 | const struct netlbl_lsm_secattr *secattr); |
410 | void netlbl_sock_delattr(struct sock *sk); | 412 | void netlbl_sock_delattr(struct sock *sk); |
411 | int netlbl_sock_getattr(struct sock *sk, | 413 | int netlbl_sock_getattr(struct sock *sk, |
@@ -413,6 +415,8 @@ int netlbl_sock_getattr(struct sock *sk, | |||
413 | int netlbl_conn_setattr(struct sock *sk, | 415 | int 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); |
418 | int netlbl_req_setattr(struct request_sock *req, | ||
419 | const struct netlbl_lsm_secattr *secattr); | ||
416 | int netlbl_skbuff_setattr(struct sk_buff *skb, | 420 | int 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 | } |
521 | static inline int netlbl_sock_setattr(struct sock *sk, | 525 | static 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 | } |
545 | static inline int netlbl_req_setattr(struct request_sock *req, | ||
546 | const struct netlbl_lsm_secattr *secattr) | ||
547 | { | ||
548 | return -ENOSYS; | ||
549 | } | ||
540 | static inline int netlbl_skbuff_setattr(struct sk_buff *skb, | 550 | static 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) |