Home
last modified time | relevance | path

Searched refs:address (Results 1 – 11 of 11) sorted by relevance

/security/tomoyo/
Dnetwork.c14 const __be32 *address; /* In network byte order. */ member
55 char *address = tomoyo_read_token(param); in tomoyo_parse_ipaddr_union() local
58 if (!strchr(address, ':') && in tomoyo_parse_ipaddr_union()
59 in4_pton(address, -1, min, '-', &end) > 0) { in tomoyo_parse_ipaddr_union()
68 if (in6_pton(address, -1, min, '-', &end) > 0) { in tomoyo_parse_ipaddr_union()
199 tomoyo_same_ipaddr_union(&p1->address, &p2->address) && in tomoyo_same_inet_acl()
300 e.address.group = in tomoyo_write_inet_network()
302 if (!e.address.group) in tomoyo_write_inet_network()
305 if (!tomoyo_parse_ipaddr_union(param, &e.address)) in tomoyo_write_inet_network()
315 tomoyo_put_group(e.address.group); in tomoyo_write_inet_network()
[all …]
Dgroup.c63 return tomoyo_same_ipaddr_union(&p1->address, &p2->address); in tomoyo_same_address_group()
109 !tomoyo_parse_ipaddr_union(param, &e.address)) in tomoyo_write_group()
189 bool tomoyo_address_matches_group(const bool is_ipv6, const __be32 *address, in tomoyo_address_matches_group() argument
200 if (member->address.is_ipv6 != is_ipv6) in tomoyo_address_matches_group()
202 if (memcmp(&member->address.ip[0], address, size) > 0 || in tomoyo_address_matches_group()
203 memcmp(address, &member->address.ip[1], size) > 0) in tomoyo_address_matches_group()
Dcommon.h468 const __be32 *address; member
477 const struct tomoyo_path_info *address; member
563 struct tomoyo_ipaddr_union address; member
767 struct tomoyo_ipaddr_union address; member
927 bool tomoyo_address_matches_group(const bool is_ipv6, const __be32 *address,
Dcommon.c1523 if (ptr->address.group) { in tomoyo_print_entry()
1525 tomoyo_set_string(head, ptr->address.group->group_name in tomoyo_print_entry()
1530 tomoyo_print_ip(buf, sizeof(buf), &ptr->address); in tomoyo_print_entry()
1835 &member->address); in tomoyo_read_group()
Dgc.c219 tomoyo_put_group(entry->address.group); in tomoyo_del_acl()
/security/smack/
Dsmack_lsm.c2499 struct sockaddr_in6 *address, int act) in smk_ipv6_check() argument
2510 ad.a.u.net->dport = ntohs(address->sin6_port); in smk_ipv6_check()
2512 ad.a.u.net->v6info.saddr = address->sin6_addr; in smk_ipv6_check()
2514 ad.a.u.net->v6info.daddr = address->sin6_addr; in smk_ipv6_check()
2530 static void smk_ipv6_port_label(struct socket *sock, struct sockaddr *address) in smk_ipv6_port_label() argument
2538 if (address == NULL) { in smk_ipv6_port_label()
2561 addr6 = (struct sockaddr_in6 *)address; in smk_ipv6_port_label()
2618 static int smk_ipv6_port_check(struct sock *sk, struct sockaddr_in6 *address, in smk_ipv6_port_check() argument
2628 skp = smack_ipv6host_label(address); in smk_ipv6_port_check()
2632 object = smack_ipv6host_label(address); in smk_ipv6_port_check()
[all …]
/security/selinux/include/
Dclassmap.h253 #error New address family defined, please update secclass_map.
/security/apparmor/
Dlsm.c857 struct sockaddr *address, int addrlen) in apparmor_socket_bind() argument
861 AA_BUG(!address); in apparmor_socket_bind()
865 bind_perm(sock, address, addrlen), in apparmor_socket_bind()
873 struct sockaddr *address, int addrlen) in apparmor_socket_connect() argument
877 AA_BUG(!address); in apparmor_socket_connect()
881 connect_perm(sock, address, addrlen), in apparmor_socket_connect()
/security/
DKconfig130 int "Low address space for LSM to protect from user allocation"
139 For most ia64, ppc64 and x86 users with lots of address space
143 this low address space will need the permission specific to the
Dsecurity.c1992 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen) in security_socket_bind() argument
1994 return call_int_hook(socket_bind, 0, sock, address, addrlen); in security_socket_bind()
1997 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen) in security_socket_connect() argument
1999 return call_int_hook(socket_connect, 0, sock, address, addrlen); in security_socket_connect()
2183 struct sockaddr *address, int addrlen) in security_sctp_bind_connect() argument
2186 address, addrlen); in security_sctp_bind_connect()
/security/selinux/
Dhooks.c1325 #error New address family defined, please update this function. in socket_type_to_security_class()
4560 static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen) in selinux_socket_bind() argument
4591 family_sa = address->sa_family; in selinux_socket_bind()
4597 addr4 = (struct sockaddr_in *)address; in selinux_socket_bind()
4612 addr6 = (struct sockaddr_in6 *)address; in selinux_socket_bind()
4695 struct sockaddr *address, int addrlen) in selinux_socket_connect_helper() argument
4710 if (address->sa_family == AF_UNSPEC) in selinux_socket_connect_helper()
4732 switch (address->sa_family) { in selinux_socket_connect_helper()
4734 addr4 = (struct sockaddr_in *)address; in selinux_socket_connect_helper()
4740 addr6 = (struct sockaddr_in6 *)address; in selinux_socket_connect_helper()
[all …]