Home
last modified time | relevance | path

Searched refs:subnet_prefix (Results 1 – 15 of 15) sorted by relevance

/third_party/selinux/libsepol/src/
Dibpkey_record.c14 uint64_t subnet_prefix; member
25 uint64_t subnet_prefix; member
36 uint64_t *subnet_prefix) in ibpkey_parse_subnet_prefix() argument
46 memcpy(subnet_prefix, in_addr.s6_addr, sizeof(*subnet_prefix)); in ibpkey_parse_subnet_prefix()
56 uint64_t subnet_prefix, in ibpkey_expand_subnet_prefix() argument
62 memcpy(&addr.s6_addr[0], &subnet_prefix, sizeof(subnet_prefix)); in ibpkey_expand_subnet_prefix()
78 char **subnet_prefix) in ibpkey_alloc_subnet_prefix_string() argument
87 *subnet_prefix = tmp_subnet_prefix; in ibpkey_alloc_subnet_prefix_string()
99 const char *subnet_prefix, in sepol_ibpkey_key_create() argument
111 if (ibpkey_parse_subnet_prefix(handle, subnet_prefix, &tmp_key->subnet_prefix) < 0) in sepol_ibpkey_key_create()
[all …]
Dibpkeys.c30 tmp_ibpkey->u.ibpkey.subnet_prefix = sepol_ibpkey_get_subnet_prefix_bytes(data); in ibpkey_from_record()
80 ibpkey->u.ibpkey.subnet_prefix); in ibpkey_to_record()
127 uint64_t subnet_prefix; in sepol_ibpkey_exists() local
129 sepol_ibpkey_key_unpack(key, &subnet_prefix, &low, &high); in sepol_ibpkey_exists()
133 uint64_t subnet_prefix2 = c->u.ibpkey.subnet_prefix; in sepol_ibpkey_exists()
139 subnet_prefix == subnet_prefix2) { in sepol_ibpkey_exists()
157 uint64_t subnet_prefix; in sepol_ibpkey_query() local
159 sepol_ibpkey_key_unpack(key, &subnet_prefix, &low, &high); in sepol_ibpkey_query()
163 uint64_t subnet_prefix2 = c->u.ibpkey.subnet_prefix; in sepol_ibpkey_query()
169 subnet_prefix == subnet_prefix2) { in sepol_ibpkey_query()
[all …]
Dkernel_to_common.c529 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp()
Dkernel_to_cil.c2857 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in write_selinux_ibpkey_rules_to_cil() local
2866 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil()
2867 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil()
2869 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in write_selinux_ibpkey_rules_to_cil()
Dkernel_to_conf.c2731 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in write_selinux_ibpkey_rules_to_conf() local
2740 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf()
2741 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf()
2743 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in write_selinux_ibpkey_rules_to_conf()
Dservices.c1894 int sepol_ibpkey_sid(uint64_t subnet_prefix, in sepol_ibpkey_sid() argument
1904 subnet_prefix == c->u.ibpkey.subnet_prefix) in sepol_ibpkey_sid()
Dmodule_to_cil.c2659 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in ocontext_selinux_ibpkey_to_cil() local
2666 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil()
2667 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
2669 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in ocontext_selinux_ibpkey_to_cil()
Dwrite.c1507 memcpy(buf, &c->u.ibpkey.subnet_prefix, in ocontext_write_selinux()
1508 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_write_selinux()
Dexpand.c2201 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux()
Dpolicydb.c3037 memcpy(&c->u.ibpkey.subnet_prefix, buf, in ocontext_read_selinux()
3038 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_read_selinux()
/third_party/selinux/libsepol/include/sepol/
Dibpkey_record.h27 const char *subnet_prefix,
32 uint64_t *subnet_prefix,
51 char **subnet_prefix);
57 const char *subnet_prefix);
60 uint64_t subnet_prefix);
/third_party/selinux/checkpolicy/
Dcheckpolicy.c1273 uint64_t subnet_prefix; in main() local
1286 memcpy(&subnet_prefix, p, sizeof(subnet_prefix)); in main()
1290 sepol_ibpkey_sid(subnet_prefix, pkey, &ssid); in main()
Dpolicy_define.c5001 struct in6_addr subnet_prefix; in define_ibpkey_context() local
5031 rc = inet_pton(AF_INET6, id, &subnet_prefix); in define_ibpkey_context()
5040 if (subnet_prefix.s6_addr[2] || subnet_prefix.s6_addr[3]) { in define_ibpkey_context()
5052 memcpy(&newc->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in define_ibpkey_context()
5053 sizeof(newc->u.ibpkey.subnet_prefix)); in define_ibpkey_context()
5077 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
5084 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h367 uint64_t subnet_prefix; member
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c3244 struct in6_addr subnet_prefix; in cil_ibpkeycon_to_policydb() local
3250 rc = inet_pton(AF_INET6, cil_ibpkeycon->subnet_prefix_str, &subnet_prefix); in cil_ibpkeycon_to_policydb()
3257 memcpy(&new_ocon->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in cil_ibpkeycon_to_policydb()
3258 sizeof(new_ocon->u.ibpkey.subnet_prefix)); in cil_ibpkeycon_to_policydb()