diff options
Diffstat (limited to 'include/net/netlabel.h')
-rw-r--r-- | include/net/netlabel.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h index 749011eedc0b..60ebbc1fef46 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,9 @@ 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); | ||
420 | void netlbl_req_delattr(struct request_sock *req); | ||
416 | int netlbl_skbuff_setattr(struct sk_buff *skb, | 421 | int netlbl_skbuff_setattr(struct sk_buff *skb, |
417 | u16 family, | 422 | u16 family, |
418 | const struct netlbl_lsm_secattr *secattr); | 423 | const struct netlbl_lsm_secattr *secattr); |
@@ -519,7 +524,8 @@ static inline int netlbl_enabled(void) | |||
519 | return 0; | 524 | return 0; |
520 | } | 525 | } |
521 | static inline int netlbl_sock_setattr(struct sock *sk, | 526 | static inline int netlbl_sock_setattr(struct sock *sk, |
522 | const struct netlbl_lsm_secattr *secattr) | 527 | u16 family, |
528 | const struct netlbl_lsm_secattr *secattr) | ||
523 | { | 529 | { |
524 | return -ENOSYS; | 530 | return -ENOSYS; |
525 | } | 531 | } |
@@ -537,6 +543,15 @@ static inline int netlbl_conn_setattr(struct sock *sk, | |||
537 | { | 543 | { |
538 | return -ENOSYS; | 544 | return -ENOSYS; |
539 | } | 545 | } |
546 | static inline int netlbl_req_setattr(struct request_sock *req, | ||
547 | const struct netlbl_lsm_secattr *secattr) | ||
548 | { | ||
549 | return -ENOSYS; | ||
550 | } | ||
551 | static inline void netlbl_req_delattr(struct request_sock *req) | ||
552 | { | ||
553 | return; | ||
554 | } | ||
540 | static inline int netlbl_skbuff_setattr(struct sk_buff *skb, | 555 | static inline int netlbl_skbuff_setattr(struct sk_buff *skb, |
541 | u16 family, | 556 | u16 family, |
542 | const struct netlbl_lsm_secattr *secattr) | 557 | const struct netlbl_lsm_secattr *secattr) |