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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index 3f67e6d49e40..074cad40ac66 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -380,8 +380,12 @@ int netlbl_secattr_catmap_setrng(struct netlbl_lsm_secattr_catmap *catmap,
380int netlbl_enabled(void); 380int netlbl_enabled(void);
381int netlbl_sock_setattr(struct sock *sk, 381int netlbl_sock_setattr(struct sock *sk,
382 const struct netlbl_lsm_secattr *secattr); 382 const struct netlbl_lsm_secattr *secattr);
383void netlbl_sock_delattr(struct sock *sk);
383int netlbl_sock_getattr(struct sock *sk, 384int netlbl_sock_getattr(struct sock *sk,
384 struct netlbl_lsm_secattr *secattr); 385 struct netlbl_lsm_secattr *secattr);
386int netlbl_conn_setattr(struct sock *sk,
387 struct sockaddr *addr,
388 const struct netlbl_lsm_secattr *secattr);
385int netlbl_skbuff_setattr(struct sk_buff *skb, 389int netlbl_skbuff_setattr(struct sk_buff *skb,
386 u16 family, 390 u16 family,
387 const struct netlbl_lsm_secattr *secattr); 391 const struct netlbl_lsm_secattr *secattr);
@@ -449,11 +453,20 @@ static inline int netlbl_sock_setattr(struct sock *sk,
449{ 453{
450 return -ENOSYS; 454 return -ENOSYS;
451} 455}
456static inline void netlbl_sock_delattr(struct sock *sk)
457{
458}
452static inline int netlbl_sock_getattr(struct sock *sk, 459static inline int netlbl_sock_getattr(struct sock *sk,
453 struct netlbl_lsm_secattr *secattr) 460 struct netlbl_lsm_secattr *secattr)
454{ 461{
455 return -ENOSYS; 462 return -ENOSYS;
456} 463}
464static inline int netlbl_conn_setattr(struct sock *sk,
465 struct sockaddr *addr,
466 const struct netlbl_lsm_secattr *secattr)
467{
468 return -ENOSYS;
469}
457static inline int netlbl_skbuff_setattr(struct sk_buff *skb, 470static inline int netlbl_skbuff_setattr(struct sk_buff *skb,
458 u16 family, 471 u16 family,
459 const struct netlbl_lsm_secattr *secattr) 472 const struct netlbl_lsm_secattr *secattr)