/third_party/selinux/libsepol/src/ |
D | ibpkey_record.c | 14 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 …]
|
D | ibpkeys.c | 30 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 …]
|
D | kernel_to_common.c | 529 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp()
|
D | kernel_to_cil.c | 2857 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()
|
D | kernel_to_conf.c | 2731 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()
|
D | services.c | 1894 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()
|
D | module_to_cil.c | 2659 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()
|
D | write.c | 1507 memcpy(buf, &c->u.ibpkey.subnet_prefix, in ocontext_write_selinux() 1508 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_write_selinux()
|
D | expand.c | 2201 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux()
|
D | policydb.c | 3037 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/ |
D | ibpkey_record.h | 27 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/ |
D | checkpolicy.c | 1273 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()
|
D | policy_define.c | 5001 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/ |
D | policydb.h | 367 uint64_t subnet_prefix; member
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3244 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()
|