~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/security/selinux/include/netlabel.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /security/selinux/include/netlabel.h (Version linux-6.12-rc7) and /security/selinux/include/netlabel.h (Version policy-sample)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  * SELinux interface to the NetLabel subsystem    
  4  *                                                
  5  * Author: Paul Moore <paul@paul-moore.com>       
  6  */                                               
  7                                                   
  8 /*                                                
  9  * (c) Copyright Hewlett-Packard Development C    
 10  */                                               
 11                                                   
 12 #ifndef _SELINUX_NETLABEL_H_                      
 13 #define _SELINUX_NETLABEL_H_                      
 14                                                   
 15 #include <linux/types.h>                          
 16 #include <linux/fs.h>                             
 17 #include <linux/net.h>                            
 18 #include <linux/skbuff.h>                         
 19 #include <net/sock.h>                             
 20 #include <net/request_sock.h>                     
 21 #include <net/sctp/structs.h>                     
 22                                                   
 23 #include "avc.h"                                  
 24 #include "objsec.h"                               
 25                                                   
 26 #ifdef CONFIG_NETLABEL                            
 27 void selinux_netlbl_cache_invalidate(void);       
 28                                                   
 29 void selinux_netlbl_err(struct sk_buff *skb, u    
 30                         int gateway);             
 31                                                   
 32 void selinux_netlbl_sk_security_free(struct sk    
 33 void selinux_netlbl_sk_security_reset(struct s    
 34                                                   
 35 int selinux_netlbl_skbuff_getsid(struct sk_buf    
 36                                  u32 *sid);       
 37 int selinux_netlbl_skbuff_setsid(struct sk_buf    
 38 int selinux_netlbl_sctp_assoc_request(struct s    
 39                                       struct s    
 40 int selinux_netlbl_inet_conn_request(struct re    
 41 void selinux_netlbl_inet_csk_clone(struct sock    
 42 void selinux_netlbl_sctp_sk_clone(struct sock     
 43 int selinux_netlbl_socket_post_create(struct s    
 44 int selinux_netlbl_sock_rcv_skb(struct sk_secu    
 45                                 struct sk_buff    
 46                                 struct common_    
 47 int selinux_netlbl_socket_setsockopt(struct so    
 48                                      int optna    
 49 int selinux_netlbl_socket_connect(struct sock     
 50 int selinux_netlbl_socket_connect_locked(struc    
 51                                          struc    
 52                                                   
 53 #else                                             
 54 static inline void selinux_netlbl_cache_invali    
 55 {                                                 
 56         return;                                   
 57 }                                                 
 58                                                   
 59 static inline void selinux_netlbl_err(struct s    
 60                                       int erro    
 61 {                                                 
 62         return;                                   
 63 }                                                 
 64                                                   
 65 static inline void                                
 66 selinux_netlbl_sk_security_free(struct sk_secu    
 67 {                                                 
 68         return;                                   
 69 }                                                 
 70                                                   
 71 static inline void                                
 72 selinux_netlbl_sk_security_reset(struct sk_sec    
 73 {                                                 
 74         return;                                   
 75 }                                                 
 76                                                   
 77 static inline int selinux_netlbl_skbuff_getsid    
 78                                                   
 79 {                                                 
 80         *type = NETLBL_NLTYPE_NONE;               
 81         *sid = SECSID_NULL;                       
 82         return 0;                                 
 83 }                                                 
 84 static inline int selinux_netlbl_skbuff_setsid    
 85                                                   
 86 {                                                 
 87         return 0;                                 
 88 }                                                 
 89                                                   
 90 static inline int                                 
 91 selinux_netlbl_sctp_assoc_request(struct sctp_    
 92                                   struct sk_bu    
 93 {                                                 
 94         return 0;                                 
 95 }                                                 
 96 static inline int selinux_netlbl_inet_conn_req    
 97                                                   
 98 {                                                 
 99         return 0;                                 
100 }                                                 
101 static inline void selinux_netlbl_inet_csk_clo    
102 {                                                 
103         return;                                   
104 }                                                 
105 static inline void selinux_netlbl_sctp_sk_clon    
106                                                   
107 {                                                 
108         return;                                   
109 }                                                 
110 static inline int selinux_netlbl_socket_post_c    
111 {                                                 
112         return 0;                                 
113 }                                                 
114 static inline int selinux_netlbl_sock_rcv_skb(    
115                                                   
116                                                   
117 {                                                 
118         return 0;                                 
119 }                                                 
120 static inline int selinux_netlbl_socket_setsoc    
121                                                   
122 {                                                 
123         return 0;                                 
124 }                                                 
125 static inline int selinux_netlbl_socket_connec    
126                                                   
127 {                                                 
128         return 0;                                 
129 }                                                 
130 static inline int selinux_netlbl_socket_connec    
131                                                   
132 {                                                 
133         return 0;                                 
134 }                                                 
135 #endif /* CONFIG_NETLABEL */                      
136                                                   
137 #endif                                            
138                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php