Home
last modified time | relevance | path

Searched refs:subnet_prefix (Results 1 – 16 of 16) 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.c538 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp()
Dkernel_to_conf.c2784 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in write_selinux_ibpkey_rules_to_conf() local
2793 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf()
2794 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf()
2796 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in write_selinux_ibpkey_rules_to_conf()
Dkernel_to_cil.c2915 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in write_selinux_ibpkey_rules_to_cil() local
2924 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil()
2925 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil()
2927 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in write_selinux_ibpkey_rules_to_cil()
Dservices.c1901 int sepol_ibpkey_sid(uint64_t subnet_prefix, in sepol_ibpkey_sid() argument
1911 subnet_prefix == c->u.ibpkey.subnet_prefix) in sepol_ibpkey_sid()
Dmodule_to_cil.c2671 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in ocontext_selinux_ibpkey_to_cil() local
2678 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil()
2679 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
2681 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in ocontext_selinux_ibpkey_to_cil()
Dwrite.c1509 memcpy(buf, &c->u.ibpkey.subnet_prefix, in ocontext_write_selinux()
1510 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_write_selinux()
Dexpand.c2226 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux()
Dpolicydb.c3061 memcpy(&c->u.ibpkey.subnet_prefix, buf, in ocontext_read_selinux()
3062 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.c1272 uint64_t subnet_prefix; in main() local
1285 memcpy(&subnet_prefix, p, sizeof(subnet_prefix)); in main()
1289 sepol_ibpkey_sid(subnet_prefix, pkey, &ssid); in main()
Dpolicy_define.c5057 struct in6_addr subnet_prefix; in define_ibpkey_context() local
5087 rc = inet_pton(AF_INET6, id, &subnet_prefix); in define_ibpkey_context()
5096 if (subnet_prefix.s6_addr[2] || subnet_prefix.s6_addr[3]) { in define_ibpkey_context()
5108 memcpy(&newc->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in define_ibpkey_context()
5109 sizeof(newc->u.ibpkey.subnet_prefix)); in define_ibpkey_context()
5133 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
5140 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h368 uint64_t subnet_prefix; member
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c3341 struct in6_addr subnet_prefix; in cil_ibpkeycon_to_policydb() local
3347 rc = inet_pton(AF_INET6, cil_ibpkeycon->subnet_prefix_str, &subnet_prefix); in cil_ibpkeycon_to_policydb()
3354 memcpy(&new_ocon->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in cil_ibpkeycon_to_policydb()
3355 sizeof(new_ocon->u.ibpkey.subnet_prefix)); in cil_ibpkeycon_to_policydb()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h51592 __be64 subnet_prefix; member
51629 u64 subnet_prefix; member
54202 u64 subnet_prefix; member
80127 u64 subnet_prefix; member
81074 u64 subnet_prefix; member