Home
last modified time | relevance | path

Searched refs:stypes (Results 1 – 22 of 22) sorted by relevance

/third_party/selinux/libsepol/src/
Dexpand.c1448 ebitmap_t stypes, ttypes; in expand_filename_trans() local
1454 ebitmap_init(&stypes); in expand_filename_trans()
1458 &cur_rule->stypes, &stypes, 1)) { in expand_filename_trans()
1470 ebitmap_for_each_positive_bit(&stypes, snode, i) { in expand_filename_trans()
1487 ebitmap_destroy(&stypes); in expand_filename_trans()
1568 ebitmap_t stypes, ttypes; in expand_range_trans() local
1575 ebitmap_init(&stypes); in expand_range_trans()
1580 &rule->stypes, &stypes, 1)) { in expand_range_trans()
1586 ebitmap_destroy(&stypes); in expand_range_trans()
1592 ebitmap_for_each_positive_bit(&stypes, snode, i) { in expand_range_trans()
[all …]
Dpolicydb.c617 type_set_init(&x->stypes); in avrule_init()
628 type_set_destroy(&x->stypes); in avrule_destroy()
673 type_set_init(&x->stypes); in filename_trans_rule_init()
681 type_set_destroy(&x->stypes); in filename_trans_rule_destroy()
722 type_set_init(&x->stypes); in range_trans_rule_init()
731 type_set_destroy(&x->stypes); in range_trans_rule_destroy()
1425 ebitmap_destroy(&fd->stypes); in filenametr_destroy()
2614 if (ebitmap_get_bit(&datum->stypes, stype - 1)) { in policydb_filetrans_insert()
2629 ebitmap_init(&datum->stypes); in policydb_filetrans_insert()
2671 return ebitmap_set_bit(&datum->stypes, stype - 1, 1); in policydb_filetrans_insert()
[all …]
Dassertion.c237 rc = ebitmap_and(&src_matches, &avrule->stypes.types, in report_assertion_avtab_matches()
392 rc = ebitmap_and(&src_matches, &avrule->stypes.types, in check_assertion_extended_permissions()
454 rc = ebitmap_and(&src_matches, &avrule->stypes.types, &p->attr_type_map[k->source_type - 1]); in check_assertion_self_match()
485 if (!ebitmap_match_any(&avrule->stypes.types, &p->attr_type_map[k->source_type - 1])) in check_assertion_avtab_match()
Dmodule_to_cil.c1198 ts = &avrule->stypes; in avrule_list_to_cil()
1526 char **stypes = NULL; in range_trans_to_cil() local
1541 ts = &rule->stypes; in range_trans_to_cil()
1542 rc = process_typeset(pdb, ts, attr_list, &stypes, &num_stypes); in range_trans_to_cil()
1557 …cil_printf("(rangetransition %s %s %s ", stypes[stype], ttypes[ttype], pdb->p_class_val_to_name[i]… in range_trans_to_cil()
1579 names_destroy(&stypes, &num_stypes); in range_trans_to_cil()
1586 names_destroy(&stypes, &num_stypes); in range_trans_to_cil()
1595 char **stypes = NULL; in filename_trans_to_cil() local
1605 ts = &rule->stypes; in filename_trans_to_cil()
1606 rc = process_typeset(pdb, ts, attr_list, &stypes, &num_stypes); in filename_trans_to_cil()
[all …]
Dpolicydb_validate.c877 if (validate_type_set(&avrule->stypes, &flavors[SYM_TYPES])) in validate_avrules()
1091 if (validate_ebitmap(&ftd->stypes, &flavors[SYM_TYPES])) in validate_filename_trans()
1236 if (validate_type_set(&range_trans->stypes, &flavors[SYM_TYPES])) in validate_range_trans_rules()
1283 if (validate_type_set(&filename_trans->stypes, &flavors[SYM_TYPES])) in validate_filename_trans_rules()
Dlink.c1247 (&cur->stypes, &new_rule->stypes, module) == -1 in copy_avrule_list()
1444 if (type_set_or_convert(&cur->stypes, &new_rule->stypes, module) || in copy_filename_trans_list()
1477 if (type_set_convert(&rule->stypes, &new_rule->stypes, in copy_range_trans_list()
Dwrite.c583 ebitmap_for_each_positive_bit(&datum->stypes, node, bit) { in filename_write_one_compat()
642 if (ebitmap_write(&datum->stypes, fp)) in filename_write_one()
1765 if (type_set_write(&avrule->stypes, fp)) in avrule_write()
1969 if (type_set_write(&ftr->stypes, fp)) in filename_trans_rule_write()
2010 if (type_set_write(&rt->stypes, fp)) in range_trans_rule_write()
Dkernel_to_conf.c1870 ebitmap_for_each_positive_bit(&datum->stypes, node, bit) { in map_filename_trans_to_str()
Dkernel_to_cil.c1894 ebitmap_for_each_positive_bit(&datum->stypes, node, bit) { in map_filename_trans_to_str()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dhs20_supplicant.h17 int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
19 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
Dhs20_supplicant.c212 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len, in hs20_put_anqp_req() argument
223 if (stypes == BIT(HS20_STYPE_NAI_HOME_REALM_QUERY)) { in hs20_put_anqp_req()
228 } else if (stypes == BIT(HS20_STYPE_ICON_REQUEST)) { in hs20_put_anqp_req()
238 if (stypes & BIT(i)) in hs20_put_anqp_req()
248 static struct wpabuf * hs20_build_anqp_req(u32 stypes, const u8 *payload, in hs20_build_anqp_req() argument
257 hs20_put_anqp_req(stypes, payload, payload_len, buf); in hs20_build_anqp_req()
263 int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes, in hs20_anqp_send_req() argument
285 "subtypes 0x%x", MAC2STR_SEC(dst), stypes); in hs20_anqp_send_req()
287 buf = hs20_build_anqp_req(stypes, payload, payload_len); in hs20_anqp_send_req()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dhs20_supplicant.h17 int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
19 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
Dhs20_supplicant.c212 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len, in hs20_put_anqp_req() argument
223 if (stypes == BIT(HS20_STYPE_NAI_HOME_REALM_QUERY)) { in hs20_put_anqp_req()
228 } else if (stypes == BIT(HS20_STYPE_ICON_REQUEST)) { in hs20_put_anqp_req()
238 if (stypes & BIT(i)) in hs20_put_anqp_req()
248 static struct wpabuf * hs20_build_anqp_req(u32 stypes, const u8 *payload, in hs20_build_anqp_req() argument
257 hs20_put_anqp_req(stypes, payload, payload_len, buf); in hs20_build_anqp_req()
263 int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes, in hs20_anqp_send_req() argument
285 "subtypes 0x%x", MAC2STR(dst), stypes); in hs20_anqp_send_req()
287 buf = hs20_build_anqp_req(stypes, payload, payload_len); in hs20_anqp_send_req()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h172 ebitmap_t stypes; member
290 type_set_t stypes; member
318 type_set_t stypes; member
327 type_set_t stypes; member
/third_party/selinux/checkpolicy/
Dpolicy_define.c1631 if (set_types(&avrule->stypes, id, &add, 0)) in define_compute_type_helper()
2068 (&avrule->stypes, id, &add, in define_te_avtab_xperms_helper()
2353 if (type_set_cpy(&dest->stypes, &src->stypes)) { in avrule_cpy()
2530 (&avrule->stypes, id, &add, in define_te_avtab_helper()
3304 type_set_t stypes, ttypes; in define_filename_trans() local
3333 type_set_init(&stypes); in define_filename_trans()
3341 if (set_types(&stypes, id, &add, 0)) in define_filename_trans()
3392 if (type_set_expand(&stypes, &e_stypes, policydbp, 1)) in define_filename_trans()
3448 if (type_set_cpy(&ftr->stypes, &stypes)) { in define_filename_trans()
3465 type_set_destroy(&stypes); in define_filename_trans()
[all …]
/third_party/selinux/checkpolicy/test/
Ddismod.c257 if (display_type_set(&avrule->stypes, 0, policy, fp)) in display_avrule()
512 display_type_set(&tr->stypes, 0, p, fp); in display_filename_trans()
Ddispol.c347 ebitmap_for_each_positive_bit(&ftdatum->stypes, node, bit) { in filenametr_display()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c4623 __cil_init_sepol_type_set(&avrule->stypes); in __cil_init_sepol_avrule()
4648 ebitmap_destroy(&curr->stypes.types); in __cil_destroy_sepol_avrules()
4649 ebitmap_destroy(&curr->stypes.negset); in __cil_destroy_sepol_avrules()
4809 rc = __cil_add_sepol_type(pdb, db, cil_rule->src, &rule->stypes.types); in cil_check_neverallow()
/third_party/python/Doc/library/
Demail.policy.rst424 header field types, and the major MIME header field stypes. Support for
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_nl80211.c2417 static const int stypes[] = { in nl80211_mgmt_subscribe_ap() local
2438 for (i = 0; i < ARRAY_SIZE(stypes); i++) { in nl80211_mgmt_subscribe_ap()
2441 (stypes[i] << 4), in nl80211_mgmt_subscribe_ap()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_nl80211.c2656 static const int stypes[] = { in nl80211_mgmt_subscribe_ap() local
2677 for (i = 0; i < ARRAY_SIZE(stypes); i++) { in nl80211_mgmt_subscribe_ap()
2680 (stypes[i] << 4), in nl80211_mgmt_subscribe_ap()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h54295 struct ebitmap stypes; member