Home
last modified time | relevance | path

Searched refs:port (Results 1 – 13 of 13) sorted by relevance

/security/selinux/
Dnetport.c87 struct sel_netport *port; in sel_netport_find() local
90 list_for_each_entry_rcu(port, &sel_netport_hash[idx].list, list) in sel_netport_find()
91 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find()
92 return port; in sel_netport_find()
105 static void sel_netport_insert(struct sel_netport *port) in sel_netport_insert() argument
111 idx = sel_netport_hashfn(port->psec.port); in sel_netport_insert()
112 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert()
141 struct sel_netport *port; in sel_netport_sid_slow() local
145 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow()
146 if (port != NULL) { in sel_netport_sid_slow()
[all …]
Dhooks.c6628 ibendport.port = port_num; in selinux_ib_endport_manage_subnet()
/security/tomoyo/
Dnetwork.c13 __be16 port; /* In network byte order. */ member
200 tomoyo_same_number_union(&p1->port, &p2->port); in tomoyo_same_inet_acl()
308 if (!tomoyo_parse_number_union(param, &e.port) || in tomoyo_write_inet_network()
309 e.port.values[1] > 65535) in tomoyo_write_inet_network()
316 tomoyo_put_number_union(&e.port); in tomoyo_write_inet_network()
392 r->param.inet_network.port); in tomoyo_audit_inet_log()
427 !tomoyo_compare_number_union(r->param.inet_network.port, in tomoyo_check_inet_acl()
428 &acl->port)) in tomoyo_check_inet_acl()
481 r.param.inet_network.port = ntohs(address->inet.port); in tomoyo_inet_entry()
503 const u16 port, in tomoyo_check_inet_address() argument
[all …]
Dcommon.h469 u16 port; member
768 struct tomoyo_number_union port; member
Dgc.c220 tomoyo_put_number_union(&entry->port); in tomoyo_del_acl()
Dcommon.c1533 tomoyo_print_number_union(head, &ptr->port); in tomoyo_print_entry()
/security/
Dlsm_audit.c185 struct in6_addr *addr, __be16 port, in print_ipv6_addr() argument
190 if (port) in print_ipv6_addr()
191 audit_log_format(ab, " %s=%d", name2, ntohs(port)); in print_ipv6_addr()
195 __be16 port, char *name1, char *name2) in print_ipv4_addr() argument
199 if (port) in print_ipv4_addr()
200 audit_log_format(ab, " %s=%d", name2, ntohs(port)); in print_ipv4_addr()
426 a->u.ibendport->port); in dump_common_audit_data()
/security/selinux/ss/
Dpolicydb.h177 } port; /* TCP or UDP port information */ member
193 u8 port; member
Dpolicydb.c2134 c->u.port.protocol = le32_to_cpu(buf[0]); in ocontext_read()
2135 c->u.port.low_port = le32_to_cpu(buf[1]); in ocontext_read()
2136 c->u.port.high_port = le32_to_cpu(buf[2]); in ocontext_read()
2221 u32 port; in ocontext_read() local
2232 port = le32_to_cpu(buf[1]); in ocontext_read()
2233 if (port > U8_MAX || port == 0) { in ocontext_read()
2238 c->u.ibendport.port = port; in ocontext_read()
3130 buf[0] = cpu_to_le32(c->u.port.protocol); in ocontext_write()
3131 buf[1] = cpu_to_le32(c->u.port.low_port); in ocontext_write()
3132 buf[2] = cpu_to_le32(c->u.port.high_port); in ocontext_write()
[all …]
Dservices.c2316 u8 protocol, u16 port, u32 *out_sid) in security_port_sid() argument
2330 if (c->u.port.protocol == protocol && in security_port_sid()
2331 c->u.port.low_port <= port && in security_port_sid()
2332 c->u.port.high_port >= port) in security_port_sid()
2419 if (c->u.ibendport.port == port_num && in security_ib_endport_sid()
/security/selinux/include/
Dobjsec.h101 u16 port; /* port number */ member
Dsecurity.h290 u8 protocol, u16 port, u32 *out_sid);
/security/smack/
Dsmack_lsm.c2536 unsigned short port = 0; in smk_ipv6_port_label() local
2562 port = ntohs(addr6->sin6_port); in smk_ipv6_port_label()
2566 if (port == 0) in smk_ipv6_port_label()
2575 if (spp->smk_port != port || spp->smk_sock_type != sock->type) in smk_ipv6_port_label()
2581 spp->smk_port = port; in smk_ipv6_port_label()
2597 spp->smk_port = port; in smk_ipv6_port_label()
2624 unsigned short port; in smk_ipv6_port_check() local
2657 port = ntohs(address->sin6_port); in smk_ipv6_port_check()
2660 if (spp->smk_port != port || spp->smk_sock_type != sk->sk_type) in smk_ipv6_port_check()