Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 14 of 14) sorted by relevance

/security/tomoyo/
Dnetwork.c25 u8 protocol; member
197 return p1->protocol == p2->protocol && in tomoyo_same_inet_acl()
216 return p1->protocol == p2->protocol && in tomoyo_same_unix_acl()
286 const char *protocol = tomoyo_read_token(param); in tomoyo_write_inet_network() local
289 for (e.protocol = 0; e.protocol < TOMOYO_SOCK_MAX; e.protocol++) in tomoyo_write_inet_network()
290 if (!strcmp(protocol, tomoyo_proto_keyword[e.protocol])) in tomoyo_write_inet_network()
295 if (e.protocol == TOMOYO_SOCK_MAX || !e.perm) in tomoyo_write_inet_network()
331 const char *protocol = tomoyo_read_token(param); in tomoyo_write_unix_network() local
334 for (e.protocol = 0; e.protocol < TOMOYO_SOCK_MAX; e.protocol++) in tomoyo_write_unix_network()
335 if (!strcmp(protocol, tomoyo_proto_keyword[e.protocol])) in tomoyo_write_unix_network()
[all …]
Dcommon.h467 u8 protocol; member
475 u8 protocol; member
760 u8 protocol; member
769 u8 protocol; member
Dcommon.c1475 [ptr->protocol]); in tomoyo_print_entry()
1507 [ptr->protocol]); in tomoyo_print_entry()
/security/selinux/
Dnetport.c94 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) in sel_netport_find() argument
101 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find()
148 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
155 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow()
164 ret = security_port_sid(protocol, pnum, sid); in sel_netport_sid_slow()
169 new->psec.protocol = protocol; in sel_netport_sid_slow()
197 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
202 port = sel_netport_find(protocol, pnum); in sel_netport_sid()
210 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()
Dhooks.c1171 static inline int default_protocol_stream(int protocol) in default_protocol_stream() argument
1173 return (protocol == IPPROTO_IP || protocol == IPPROTO_TCP); in default_protocol_stream()
1176 static inline int default_protocol_dgram(int protocol) in default_protocol_dgram() argument
1178 return (protocol == IPPROTO_IP || protocol == IPPROTO_UDP); in default_protocol_dgram()
1181 static inline u16 socket_type_to_security_class(int family, int type, int protocol) in socket_type_to_security_class() argument
1197 if (default_protocol_stream(protocol)) in socket_type_to_security_class()
1202 if (default_protocol_dgram(protocol)) in socket_type_to_security_class()
1213 switch (protocol) { in socket_type_to_security_class()
3814 *proto = ih->protocol; in selinux_parse_skb_ipv4()
3816 switch (ih->protocol) { in selinux_parse_skb_ipv4()
[all …]
/security/selinux/include/
Dnetport.h31 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
Dobjsec.h99 u8 protocol; /* transport protocol */ member
Dsecurity.h181 int security_port_sid(u8 protocol, u16 port, u32 *out_sid);
/security/
Dlsm_audit.c56 *proto = ih->protocol; in ipv4_skb_to_auditdata()
61 switch (ih->protocol) { in ipv4_skb_to_auditdata()
Dsecurity.c1204 int security_socket_create(int family, int type, int protocol, int kern) in security_socket_create() argument
1206 return call_int_hook(socket_create, 0, family, type, protocol, kern); in security_socket_create()
1210 int type, int protocol, int kern) in security_socket_post_create() argument
1213 protocol, kern); in security_socket_post_create()
/security/selinux/ss/
Dpolicydb.h178 u8 protocol; member
Dservices.c2182 int security_port_sid(u8 protocol, u16 port, u32 *out_sid) in security_port_sid() argument
2191 if (c->u.port.protocol == protocol && in security_port_sid()
Dpolicydb.c2173 c->u.port.protocol = le32_to_cpu(buf[0]); in ocontext_read()
3113 buf[0] = cpu_to_le32(c->u.port.protocol); in ocontext_write()
/security/smack/
Dsmack_lsm.c2747 int type, int protocol, int kern) in smack_socket_post_create() argument
4066 if (skb->protocol == htons(ETH_P_IP)) in smack_socket_getpeersec_dgram()
4069 else if (skb->protocol == htons(ETH_P_IPV6)) in smack_socket_getpeersec_dgram()
4167 if (skb->protocol == htons(ETH_P_IP)) in smack_inet_conn_request()