/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 | 18 ocontext_t **ibpkey, const sepol_ibpkey_t *data) in ibpkey_from_record() argument 30 tmp_ibpkey->u.ibpkey.subnet_prefix = sepol_ibpkey_get_subnet_prefix_bytes(data); in ibpkey_from_record() 33 tmp_ibpkey->u.ibpkey.low_pkey = low; in ibpkey_from_record() 34 tmp_ibpkey->u.ibpkey.high_pkey = high; in ibpkey_from_record() 35 if (tmp_ibpkey->u.ibpkey.low_pkey > tmp_ibpkey->u.ibpkey.high_pkey) { in ibpkey_from_record() 37 tmp_ibpkey->u.ibpkey.low_pkey, tmp_ibpkey->u.ibpkey.high_pkey); in ibpkey_from_record() 50 *ibpkey = tmp_ibpkey; in ibpkey_from_record() 70 ocontext_t *ibpkey, sepol_ibpkey_t **record) in ibpkey_to_record() argument 72 context_struct_t *con = &ibpkey->context[0]; in ibpkey_to_record() 80 ibpkey->u.ibpkey.subnet_prefix); in ibpkey_to_record() [all …]
|
D | kernel_to_common.c | 531 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp() 535 return compare_ranges((*aa)->u.ibpkey.low_pkey, (*aa)->u.ibpkey.high_pkey, in ibpkey_data_cmp() 536 (*bb)->u.ibpkey.low_pkey, (*bb)->u.ibpkey.high_pkey); in ibpkey_data_cmp()
|
D | expand.c | 2197 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux() 2199 n->u.ibpkey.low_pkey = c->u.ibpkey.low_pkey; in ocontext_copy_selinux() 2200 n->u.ibpkey.high_pkey = c->u.ibpkey.high_pkey; in ocontext_copy_selinux()
|
D | write.c | 1447 memcpy(buf, &c->u.ibpkey.subnet_prefix, in ocontext_write_selinux() 1448 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_write_selinux() 1450 buf[2] = cpu_to_le32(c->u.ibpkey.low_pkey); in ocontext_write_selinux() 1451 buf[3] = cpu_to_le32(c->u.ibpkey.high_pkey); in ocontext_write_selinux()
|
D | services.c | 1922 if (c->u.ibpkey.low_pkey <= pkey && in sepol_ibpkey_sid() 1923 c->u.ibpkey.high_pkey >= pkey && in sepol_ibpkey_sid() 1924 subnet_prefix == c->u.ibpkey.subnet_prefix) in sepol_ibpkey_sid()
|
D | kernel_to_conf.c | 2697 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf() 2698 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf() 2708 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf() 2709 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf()
|
D | kernel_to_cil.c | 2824 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil() 2825 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil() 2835 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_cil() 2836 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_cil()
|
D | module_to_cil.c | 2653 low = ibpkeycon->u.ibpkey.low_pkey; in ocontext_selinux_ibpkey_to_cil() 2654 high = ibpkeycon->u.ibpkey.high_pkey; in ocontext_selinux_ibpkey_to_cil() 2655 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil() 2656 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
|
D | policydb.c | 2862 c->u.ibpkey.low_pkey = pkey_lo; in ocontext_read_selinux() 2863 c->u.ibpkey.high_pkey = pkey_hi; in ocontext_read_selinux() 2867 memcpy(&c->u.ibpkey.subnet_prefix, buf, in ocontext_read_selinux() 2868 sizeof(c->u.ibpkey.subnet_prefix)); 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 | 1483 for ibpkey in plist: 1484 (rc, subnet_prefix) = semanage_ibpkey_get_subnet_prefix(self.sh, ibpkey) 1485 low = semanage_ibpkey_get_low(ibpkey) 1486 high = semanage_ibpkey_get_high(ibpkey) 1533 for ibpkey in self.plist: 1534 con = semanage_ibpkey_get_con(ibpkey) 1539 (rc, subnet_prefix) = semanage_ibpkey_get_subnet_prefix(self.sh, ibpkey) 1540 low = semanage_ibpkey_get_low(ibpkey) 1541 high = semanage_ibpkey_get_high(ibpkey) 1554 for ibpkey in self.plist: [all …]
|
D | semanage | 486 OBJECT.add(args.ibpkey, args.subnet_prefix, args.range, args.type) 488 OBJECT.modify(args.ibpkey, args.subnet_prefix, args.range, args.type) 490 OBJECT.delete(args.ibpkey, args.subnet_prefix)
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 5092 memcpy(&newc->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in define_ibpkey_context() 5093 sizeof(newc->u.ibpkey.subnet_prefix)); in define_ibpkey_context() 5095 newc->u.ibpkey.low_pkey = low; in define_ibpkey_context() 5096 newc->u.ibpkey.high_pkey = high; in define_ibpkey_context() 5113 low2 = c->u.ibpkey.low_pkey; in define_ibpkey_context() 5114 high2 = c->u.ibpkey.high_pkey; in define_ibpkey_context() 5117 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context() 5124 c->u.ibpkey.subnet_prefix == newc->u.ibpkey.subnet_prefix) { in define_ibpkey_context()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 369 } ibpkey; member
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 3172 memcpy(&new_ocon->u.ibpkey.subnet_prefix, &subnet_prefix.s6_addr[0], in cil_ibpkeycon_to_policydb() 3173 sizeof(new_ocon->u.ibpkey.subnet_prefix)); in cil_ibpkeycon_to_policydb() 3174 new_ocon->u.ibpkey.low_pkey = cil_ibpkeycon->pkey_low; in cil_ibpkeycon_to_policydb() 3175 new_ocon->u.ibpkey.high_pkey = cil_ibpkeycon->pkey_high; in cil_ibpkeycon_to_policydb()
|