/external/selinux/libsepol/src/ |
D | ibpkey_record.c | 144 const sepol_ibpkey_t *ibpkey, in hidden_def() 149 ibpkey_expand_subnet_prefix(handle, ibpkey->subnet_prefix, subnet_prefix_str); in hidden_def() 152 (handle, subnet_prefix_str, ibpkey->low, ibpkey->high, key_ptr) < 0) { in hidden_def() 155 ibpkey->low, ibpkey->high); in hidden_def() 170 int sepol_ibpkey_compare(const sepol_ibpkey_t *ibpkey, const sepol_ibpkey_key_t *key) in sepol_ibpkey_compare() argument 172 if (ibpkey->subnet_prefix < key->subnet_prefix) in sepol_ibpkey_compare() 174 if (key->subnet_prefix < ibpkey->subnet_prefix) in sepol_ibpkey_compare() 177 if (ibpkey->low < key->low) in sepol_ibpkey_compare() 179 if (key->low < ibpkey->low) in sepol_ibpkey_compare() 182 if (ibpkey->high < key->high) in sepol_ibpkey_compare() [all …]
|
D | ibpkeys.c | 17 ocontext_t **ibpkey, const sepol_ibpkey_t *data) in ibpkey_from_record() argument 29 tmp_ibpkey->u.ibpkey.subnet_prefix = sepol_ibpkey_get_subnet_prefix_bytes(data); in ibpkey_from_record() 32 tmp_ibpkey->u.ibpkey.low_pkey = low; in ibpkey_from_record() 33 tmp_ibpkey->u.ibpkey.high_pkey = high; in ibpkey_from_record() 34 if (tmp_ibpkey->u.ibpkey.low_pkey > tmp_ibpkey->u.ibpkey.high_pkey) { in ibpkey_from_record() 36 tmp_ibpkey->u.ibpkey.low_pkey, tmp_ibpkey->u.ibpkey.high_pkey); in ibpkey_from_record() 49 *ibpkey = tmp_ibpkey; in ibpkey_from_record() 69 ocontext_t *ibpkey, sepol_ibpkey_t **record) in ibpkey_to_record() argument 71 context_struct_t *con = &ibpkey->context[0]; in ibpkey_to_record() 79 ibpkey->u.ibpkey.subnet_prefix); in ibpkey_to_record() [all …]
|
D | kernel_to_common.c | 527 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp() 531 return compare_ranges((*aa)->u.ibpkey.low_pkey, (*aa)->u.ibpkey.high_pkey, in ibpkey_data_cmp() 532 (*bb)->u.ibpkey.low_pkey, (*bb)->u.ibpkey.high_pkey); in ibpkey_data_cmp()
|
D | expand.c | 2222 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux() 2224 n->u.ibpkey.low_pkey = c->u.ibpkey.low_pkey; in ocontext_copy_selinux() 2225 n->u.ibpkey.high_pkey = c->u.ibpkey.high_pkey; in ocontext_copy_selinux()
|
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() 1420 buf[2] = cpu_to_le32(c->u.ibpkey.low_pkey); in ocontext_write_selinux() 1421 buf[3] = cpu_to_le32(c->u.ibpkey.high_pkey); in ocontext_write_selinux()
|
D | services.c | 1926 if (c->u.ibpkey.low_pkey <= pkey && in sepol_ibpkey_sid() 1927 c->u.ibpkey.high_pkey >= pkey && in sepol_ibpkey_sid() 1928 subnet_prefix == c->u.ibpkey.subnet_prefix) in sepol_ibpkey_sid()
|
D | kernel_to_conf.c | 2661 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf() 2662 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf() 2672 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf() 2673 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf()
|
D | kernel_to_cil.c | 2800 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil() 2801 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil() 2811 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_cil() 2812 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_cil()
|
D | module_to_cil.c | 2695 low = ibpkeycon->u.ibpkey.low_pkey; in ocontext_selinux_ibpkey_to_cil() 2696 high = ibpkeycon->u.ibpkey.high_pkey; in ocontext_selinux_ibpkey_to_cil() 2697 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil() 2698 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
|
D | policydb.c | 2843 memcpy(&c->u.ibpkey.subnet_prefix, buf, in ocontext_read_selinux() 2844 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_read_selinux() 2846 c->u.ibpkey.low_pkey = le32_to_cpu(buf[2]); in ocontext_read_selinux() 2847 c->u.ibpkey.high_pkey = le32_to_cpu(buf[3]); in ocontext_read_selinux()
|
/external/selinux/libsemanage/src/ |
D | ibpkey_record.c | 26 int semanage_ibpkey_compare(const semanage_ibpkey_t *ibpkey, in semanage_ibpkey_compare() argument 29 return sepol_ibpkey_compare(ibpkey, key); in semanage_ibpkey_compare() 34 int semanage_ibpkey_compare2(const semanage_ibpkey_t *ibpkey, in hidden_def() 37 return sepol_ibpkey_compare2(ibpkey, ibpkey2); in hidden_def() 42 hidden int semanage_ibpkey_compare2_qsort(const semanage_ibpkey_t **ibpkey, in hidden_def() 45 return sepol_ibpkey_compare2(*ibpkey, *ibpkey2); in hidden_def() 57 const semanage_ibpkey_t *ibpkey, in semanage_ibpkey_key_extract() argument 60 return sepol_ibpkey_key_extract(handle->sepolh, ibpkey, key_ptr); in semanage_ibpkey_key_extract() 73 const semanage_ibpkey_t *ibpkey, in hidden_def() 76 return sepol_ibpkey_get_subnet_prefix(handle->sepolh, ibpkey, subnet_prefix_ptr); in hidden_def() [all …]
|
D | ibpkeys_file.c | 24 semanage_ibpkey_t *ibpkey, FILE *str) in ibpkey_print() argument 29 int low = semanage_ibpkey_get_low(ibpkey); in ibpkey_print() 30 int high = semanage_ibpkey_get_high(ibpkey); in ibpkey_print() 32 if (semanage_ibpkey_get_subnet_prefix(handle, ibpkey, &subnet_prefix_str) != 0) in ibpkey_print() 35 semanage_context_t *con = semanage_ibpkey_get_con(ibpkey); in ibpkey_print() 66 parse_info_t *info, semanage_ibpkey_t *ibpkey) in ibpkey_parse() argument 86 if (semanage_ibpkey_set_subnet_prefix(handle, ibpkey, str) < 0) in ibpkey_parse() 114 semanage_ibpkey_set_range(ibpkey, low, high); in ibpkey_parse() 116 semanage_ibpkey_set_pkey(ibpkey, low); in ibpkey_parse() 135 if (semanage_ibpkey_set_con(handle, ibpkey, con) < 0) in ibpkey_parse()
|
D | ibpkey_internal.h | 49 hidden int semanage_ibpkey_compare2_qsort(const semanage_ibpkey_t **ibpkey,
|
/external/selinux/libsemanage/include/semanage/ |
D | ibpkey_record.h | 19 extern int semanage_ibpkey_compare(const semanage_ibpkey_t *ibpkey, 22 extern int semanage_ibpkey_compare2(const semanage_ibpkey_t *ibpkey, 31 const semanage_ibpkey_t *ibpkey, 37 const semanage_ibpkey_t *ibpkey, 40 extern uint64_t semanage_ibpkey_get_subnet_prefix_bytes(const semanage_ibpkey_t *ibpkey); 43 semanage_ibpkey_t *ibpkey, 46 extern void semanage_ibpkey_set_subnet_prefix_bytes(semanage_ibpkey_t *ibpkey, 49 extern int semanage_ibpkey_get_low(const semanage_ibpkey_t *ibpkey); 51 extern int semanage_ibpkey_get_high(const semanage_ibpkey_t *ibpkey); 53 extern void semanage_ibpkey_set_pkey(semanage_ibpkey_t *ibpkey, int pkey_num); [all …]
|
/external/selinux/libsepol/include/sepol/ |
D | ibpkey_record.h | 20 extern int sepol_ibpkey_compare(const sepol_ibpkey_t *ibpkey, 23 extern int sepol_ibpkey_compare2(const sepol_ibpkey_t *ibpkey, 36 const sepol_ibpkey_t *ibpkey, 41 extern int sepol_ibpkey_get_low(const sepol_ibpkey_t *ibpkey); 43 extern int sepol_ibpkey_get_high(const sepol_ibpkey_t *ibpkey); 45 extern void sepol_ibpkey_set_pkey(sepol_ibpkey_t *ibpkey, int pkey_num); 47 extern void sepol_ibpkey_set_range(sepol_ibpkey_t *ibpkey, int low, int high); 50 const sepol_ibpkey_t *ibpkey, 53 extern uint64_t sepol_ibpkey_get_subnet_prefix_bytes(const sepol_ibpkey_t *ibpkey); 56 sepol_ibpkey_t *ibpkey, [all …]
|
D | ibpkeys.h | 42 int (*fn)(const sepol_ibpkey_t *ibpkey,
|
/external/selinux/python/semanage/ |
D | seobject.py | 1458 for ibpkey in plist: 1459 (rc, subnet_prefix) = semanage_ibpkey_get_subnet_prefix(self.sh, ibpkey) 1460 low = semanage_ibpkey_get_low(ibpkey) 1461 high = semanage_ibpkey_get_high(ibpkey) 1508 for ibpkey in self.plist: 1509 con = semanage_ibpkey_get_con(ibpkey) 1514 (rc, subnet_prefix) = semanage_ibpkey_get_subnet_prefix(self.sh, ibpkey) 1515 low = semanage_ibpkey_get_low(ibpkey) 1516 high = semanage_ibpkey_get_high(ibpkey) 1529 for ibpkey in self.plist: [all …]
|
D | semanage | 484 OBJECT.add(args.ibpkey, args.subnet_prefix, args.range, args.type) 486 OBJECT.modify(args.ibpkey, args.subnet_prefix, args.range, args.type) 488 OBJECT.delete(args.ibpkey, args.subnet_prefix)
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 5117 memcpy(&newc->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in define_ibpkey_context() 5118 sizeof(newc->u.ibpkey.subnet_prefix)); in define_ibpkey_context() 5120 newc->u.ibpkey.low_pkey = low; in define_ibpkey_context() 5121 newc->u.ibpkey.high_pkey = high; in define_ibpkey_context() 5138 low2 = c->u.ibpkey.low_pkey; in define_ibpkey_context() 5139 high2 = c->u.ibpkey.high_pkey; in define_ibpkey_context() 5142 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context() 5149 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 368 } ibpkey; member
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3239 memcpy(&new_ocon->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in cil_ibpkeycon_to_policydb() 3240 sizeof(new_ocon->u.ibpkey.subnet_prefix)); in cil_ibpkeycon_to_policydb() 3241 new_ocon->u.ibpkey.low_pkey = cil_ibpkeycon->pkey_low; in cil_ibpkeycon_to_policydb() 3242 new_ocon->u.ibpkey.high_pkey = cil_ibpkeycon->pkey_high; in cil_ibpkeycon_to_policydb()
|