/external/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() 79 char **subnet_prefix) in ibpkey_alloc_subnet_prefix_string() argument 88 *subnet_prefix = tmp_subnet_prefix; in ibpkey_alloc_subnet_prefix_string() 100 const char *subnet_prefix, in sepol_ibpkey_key_create() argument 112 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 | 533 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp()
|
D | kernel_to_conf.c | 2678 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in write_selinux_ibpkey_rules_to_conf() local 2687 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf() 2688 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf() 2690 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in write_selinux_ibpkey_rules_to_conf()
|
D | kernel_to_cil.c | 2817 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in write_selinux_ibpkey_rules_to_cil() local 2826 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil() 2827 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil() 2829 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in write_selinux_ibpkey_rules_to_cil()
|
D | services.c | 1918 int hidden sepol_ibpkey_sid(uint64_t subnet_prefix, in sepol_ibpkey_sid() argument 1928 subnet_prefix == c->u.ibpkey.subnet_prefix) in sepol_ibpkey_sid()
|
D | module_to_cil.c | 2684 struct in6_addr subnet_prefix = IN6ADDR_ANY_INIT; in ocontext_selinux_ibpkey_to_cil() local 2691 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil() 2692 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil() 2694 if (inet_ntop(AF_INET6, &subnet_prefix.s6_addr, in ocontext_selinux_ibpkey_to_cil()
|
D | write.c | 1417 memcpy(buf, &c->u.ibpkey.subnet_prefix, in ocontext_write_selinux() 1418 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_write_selinux()
|
D | expand.c | 2228 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux()
|
D | policydb.c | 2849 memcpy(&c->u.ibpkey.subnet_prefix, buf, in ocontext_read_selinux() 2850 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_read_selinux()
|
/external/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);
|
/external/selinux/libsemanage/src/ |
D | ibpkey_record.c | 49 const char *subnet_prefix, in semanage_ibpkey_key_create() argument 53 return sepol_ibpkey_key_create(handle->sepolh, subnet_prefix, low, high, key_ptr); in semanage_ibpkey_key_create() 90 const char *subnet_prefix) in hidden_def() 92 return sepol_ibpkey_set_subnet_prefix(handle->sepolh, ibpkey, subnet_prefix); in hidden_def() 98 uint64_t subnet_prefix) in hidden_def() 100 return sepol_ibpkey_set_subnet_prefix_bytes(ibpkey, subnet_prefix); in hidden_def()
|
D | ibpkeys_local.c | 84 uint64_t subnet_prefix; in hidden_def() local 108 subnet_prefix = semanage_ibpkey_get_subnet_prefix_bytes(ibpkeys[i]); in hidden_def() 130 } while (subnet_prefix != subnet_prefix2); in hidden_def()
|
/external/selinux/libsemanage/include/semanage/ |
D | ibpkey_record.h | 26 const char *subnet_prefix, 44 const char *subnet_prefix); 47 uint64_t subnet_prefix);
|
/external/selinux/python/semanage/ |
D | seobject.py | 1338 def __genkey(self, pkey, subnet_prefix): argument 1339 if subnet_prefix == "": 1352 (rc, k) = semanage_ibpkey_key_create(self.sh, subnet_prefix, low, high) 1354 raise ValueError(_("Could not create a key for %s/%s") % (subnet_prefix, pkey)) 1355 return (k, subnet_prefix, low, high) 1357 def __add(self, pkey, subnet_prefix, serange, type): argument 1372 (k, subnet_prefix, low, high) = self.__genkey(pkey, subnet_prefix) 1376 … raise ValueError(_("Could not check if ibpkey %s/%s is defined") % (subnet_prefix, pkey)) 1378 raise ValueError(_("ibpkey %s/%s already defined") % (subnet_prefix, pkey)) 1382 raise ValueError(_("Could not create ibpkey for %s/%s") % (subnet_prefix, pkey)) [all …]
|
D | semanage | 489 OBJECT.add(args.ibpkey, args.subnet_prefix, args.range, args.type) 491 OBJECT.modify(args.ibpkey, args.subnet_prefix, args.range, args.type) 493 OBJECT.delete(args.ibpkey, args.subnet_prefix)
|
/external/iproute2/rdma/ |
D | link.c | 96 uint64_t subnet_prefix; in link_print_subnet_prefix() local 103 subnet_prefix = mnl_attr_get_u64(tb[RDMA_NLDEV_ATTR_SUBNET_PREFIX]); in link_print_subnet_prefix() 104 memcpy(vp, &subnet_prefix, sizeof(uint64_t)); in link_print_subnet_prefix()
|
/external/kernel-headers/original/uapi/rdma/ |
D | rdma_user_rxe.h | 45 __be64 subnet_prefix; member
|
/external/selinux/checkpolicy/ |
D | checkpolicy.c | 1236 uint64_t subnet_prefix; in main() local 1249 memcpy(&subnet_prefix, p, sizeof(subnet_prefix)); in main() 1253 sepol_ibpkey_sid(subnet_prefix, pkey, &ssid); in main()
|
D | policy_define.c | 5076 struct in6_addr subnet_prefix; in define_ibpkey_context() local 5106 rc = inet_pton(AF_INET6, id, &subnet_prefix); in define_ibpkey_context() 5115 if (subnet_prefix.s6_addr[2] || subnet_prefix.s6_addr[3]) { in define_ibpkey_context() 5127 memcpy(&newc->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in define_ibpkey_context() 5128 sizeof(newc->u.ibpkey.subnet_prefix)); in define_ibpkey_context() 5152 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context() 5159 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
|
/external/tensorflow/tensorflow/contrib/verbs/ |
D | rdma.cc | 285 if (gid.global.subnet_prefix == 0 && in set_gid() 612 self_.snp = gid.global.subnet_prefix; in RdmaChannel() 721 attr.ah_attr.grh.dgid.global.subnet_prefix = remoteAddr.snp; in Connect()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 365 uint64_t subnet_prefix; member
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3240 struct in6_addr subnet_prefix; in cil_ibpkeycon_to_policydb() local 3246 rc = inet_pton(AF_INET6, cil_ibpkeycon->subnet_prefix_str, &subnet_prefix); in cil_ibpkeycon_to_policydb() 3253 memcpy(&new_ocon->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in cil_ibpkeycon_to_policydb() 3254 sizeof(new_ocon->u.ibpkey.subnet_prefix)); in cil_ibpkeycon_to_policydb()
|