/third_party/selinux/libsepol/src/ |
D | ibpkey_record.c | 141 const sepol_ibpkey_t *ibpkey, in sepol_ibpkey_key_extract() argument 146 ibpkey_expand_subnet_prefix(handle, ibpkey->subnet_prefix, subnet_prefix_str); in sepol_ibpkey_key_extract() 149 (handle, subnet_prefix_str, ibpkey->low, ibpkey->high, key_ptr) < 0) { in sepol_ibpkey_key_extract() 152 ibpkey->low, ibpkey->high); in sepol_ibpkey_key_extract() 167 int sepol_ibpkey_compare(const sepol_ibpkey_t *ibpkey, const sepol_ibpkey_key_t *key) in sepol_ibpkey_compare() argument 169 if (ibpkey->subnet_prefix < key->subnet_prefix) in sepol_ibpkey_compare() 171 if (key->subnet_prefix < ibpkey->subnet_prefix) in sepol_ibpkey_compare() 174 if (ibpkey->low < key->low) in sepol_ibpkey_compare() 176 if (key->low < ibpkey->low) in sepol_ibpkey_compare() 179 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 | 538 rc = (*aa)->u.ibpkey.subnet_prefix - (*bb)->u.ibpkey.subnet_prefix; in ibpkey_data_cmp() 542 return compare_ranges((*aa)->u.ibpkey.low_pkey, (*aa)->u.ibpkey.high_pkey, in ibpkey_data_cmp() 543 (*bb)->u.ibpkey.low_pkey, (*bb)->u.ibpkey.high_pkey); in ibpkey_data_cmp()
|
D | expand.c | 2226 n->u.ibpkey.subnet_prefix = c->u.ibpkey.subnet_prefix; in ocontext_copy_selinux() 2228 n->u.ibpkey.low_pkey = c->u.ibpkey.low_pkey; in ocontext_copy_selinux() 2229 n->u.ibpkey.high_pkey = c->u.ibpkey.high_pkey; in ocontext_copy_selinux()
|
D | services.c | 1909 if (c->u.ibpkey.low_pkey <= pkey && in sepol_ibpkey_sid() 1910 c->u.ibpkey.high_pkey >= pkey && in sepol_ibpkey_sid() 1911 subnet_prefix == c->u.ibpkey.subnet_prefix) in sepol_ibpkey_sid()
|
D | kernel_to_conf.c | 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() 2803 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf() 2804 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf()
|
D | write.c | 1509 memcpy(buf, &c->u.ibpkey.subnet_prefix, in ocontext_write_selinux() 1510 sizeof(c->u.ibpkey.subnet_prefix)); in ocontext_write_selinux() 1512 buf[2] = cpu_to_le32(c->u.ibpkey.low_pkey); in ocontext_write_selinux() 1513 buf[3] = cpu_to_le32(c->u.ibpkey.high_pkey); in ocontext_write_selinux()
|
D | kernel_to_cil.c | 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() 2934 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_cil() 2935 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_cil()
|
D | module_to_cil.c | 2676 low = ibpkeycon->u.ibpkey.low_pkey; in ocontext_selinux_ibpkey_to_cil() 2677 high = ibpkeycon->u.ibpkey.high_pkey; in ocontext_selinux_ibpkey_to_cil() 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()
|
D | policydb.c | 3056 c->u.ibpkey.low_pkey = pkey_lo; in ocontext_read_selinux() 3057 c->u.ibpkey.high_pkey = pkey_hi; in ocontext_read_selinux() 3061 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/ |
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,
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 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() 5111 newc->u.ibpkey.low_pkey = low; in define_ibpkey_context() 5112 newc->u.ibpkey.high_pkey = high; in define_ibpkey_context() 5129 low2 = c->u.ibpkey.low_pkey; in define_ibpkey_context() 5130 high2 = c->u.ibpkey.high_pkey; 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/ |
D | policydb.h | 371 } ibpkey; member
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 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() 3356 new_ocon->u.ibpkey.low_pkey = cil_ibpkeycon->pkey_low; in cil_ibpkeycon_to_policydb() 3357 new_ocon->u.ibpkey.high_pkey = cil_ibpkeycon->pkey_high; in cil_ibpkeycon_to_policydb()
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 51668 struct lsm_ibpkey_audit *ibpkey; member 54205 } ibpkey; member
|