Home
last modified time | relevance | path

Searched refs:roles (Results 1 - 25 of 155) sorted by relevance

1234567

/third_party/node/deps/npm/node_modules/@tufjs/models/dist/
H A Droot.js17 * This role specifies trusted keys for all other top-level roles, which may further delegate trust.
25 if (!options.roles) {
26 this.roles = role_1.TOP_LEVEL_ROLE_NAMES.reduce((acc, role) => ({
32 const roleNames = new Set(Object.keys(options.roles));
36 this.roles = options.roles;
40 if (!this.roles[role]) {
43 if (!this.roles[role].keyIDs.includes(key.keyID)) {
44 this.roles[role].keyIDs.push(key.keyID);
55 util_1.default.isDeepStrictEqual(this.roles, othe
[all...]
H A Ddelegations.js15 * Targets roles that are trusted to provide signed metadata files
22 if (options.roles) {
23 if (Object.keys(options.roles).some((roleName) => role_1.TOP_LEVEL_ROLE_NAMES.includes(roleName))) {
28 this.roles = options.roles;
35 util_1.default.isDeepStrictEqual(this.roles, other.roles) &&
40 if (this.roles) {
41 for (const role of Object.values(this.roles)) {
59 if (this.roles) {
[all...]
H A Dmetadata.js61 role = this.signed.roles[delegatedRole];
68 if (this.signed.delegations.roles) {
69 role = this.signed.delegations.roles[delegatedRole];
/third_party/selinux/libsepol/src/
H A Duser_record.c20 char **roles; member
22 /* The number of roles */
186 roles_realloc = reallocarray(user->roles, in sepol_user_add_role()
193 user->roles = roles_realloc; in sepol_user_add_role()
194 user->roles[user->num_roles - 1] = role_cp; in sepol_user_add_role()
212 if (!strcmp(user->roles[i], role)) in sepol_user_has_role()
242 free(user->roles[i]); in sepol_user_set_roles()
243 free(user->roles); in sepol_user_set_roles()
244 user->roles = tmp_roles; in sepol_user_set_roles()
249 ERR(handle, "out of memory, could not allocate roles arra in sepol_user_set_roles()
[all...]
H A Dusers.c22 ebitmap_t *roles; in user_to_record() local
31 roles = &(usrdatum->roles.roles); in user_to_record()
39 /* Extract roles */ in user_to_record()
40 ebitmap_for_each_positive_bit(roles, rnode, bit) { in user_to_record()
115 const char **roles = NULL; in sepol_user_modify() local
136 if (sepol_user_get_roles(handle, user, &roles, &num_roles) < 0) in sepol_user_modify()
163 roldatum = hashtab_search(policydb->p_roles.table, roles[i]); in sepol_user_modify()
166 roles[ in sepol_user_modify()
[all...]
H A Dexpand.c74 static int ebitmap_expand_roles(policydb_t *p, ebitmap_t *roles) in ebitmap_expand_roles() argument
82 ebitmap_for_each_positive_bit(roles, node, bit) { in ebitmap_expand_roles()
91 if (ebitmap_union(&tmp, &role->roles)) { in ebitmap_expand_roles()
97 ebitmap_destroy(roles); in ebitmap_expand_roles()
98 if (ebitmap_cpy(roles, &tmp)) { in ebitmap_expand_roles()
560 * The boundaries have to be copied after the types/roles/users are copied,
798 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap)) in role_fix_callback()
800 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
807 ebitmap_for_each_positive_bit(&role->roles, rnode, i) { in role_fix_callback()
890 * the roles hav in role_copy_callback()
1261 ebitmap_t roles, new_roles; copy_role_allows() local
1326 ebitmap_t roles, types; copy_role_trans() local
2456 ebitmap_t mapped_roles, roles; role_set_expand() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dcore.c40 if (!cdns->roles[role]) in cdns_role_start()
43 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start()
47 ret = cdns->roles[role]->start(cdns); in cdns_role_start()
49 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start()
62 if (cdns->roles[role]->state == CDNS_ROLE_STATE_INACTIVE) in cdns_role_stop()
66 cdns->roles[role]->stop(cdns); in cdns_role_stop()
67 cdns->roles[role]->state = CDNS_ROLE_STATE_INACTIVE; in cdns_role_stop()
289 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns_idle_init()
295 * cdns_hw_role_switch - switch roles based on HW state
515 if (cdns->roles[cdn in cdns_suspend()
[all...]
/third_party/selinux/checkpolicy/test/
H A Ddismod.c63 "classes", "roles ", "types ", "users ", "bools ",
178 static int display_mod_role_set(role_set_t * roles, policydb_t * p, FILE * fp) in display_mod_role_set() argument
182 if (roles->flags & ROLE_STAR) { in display_mod_role_set()
185 } else if (roles->flags & ROLE_COMP) { in display_mod_role_set()
189 for (i = ebitmap_startbit(&roles->roles); in display_mod_role_set()
190 i < ebitmap_length(&roles->roles); i++) { in display_mod_role_set()
191 if (!ebitmap_get_bit(&roles->roles, in display_mod_role_set()
[all...]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
H A Dci.h165 * @roles: array of supported roles for this controller
214 struct ci_role_driver *roles[CI_ROLE_END]; member
266 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
267 return ci->roles[ci->role]; in ci_role()
277 if (!ci->roles[role]) in ci_role_start()
280 ret = ci->roles[role]->start(ci); in ci_role_start()
295 ci->roles[role]->stop(ci); in ci_role_stop()
444 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode()
445 ci->roles[CI_ROLE_GADGE in ci_otg_is_fsm_mode()
[all...]
H A Dcore.c616 if ((ci_role != CI_ROLE_END && !ci->roles[ci_role]) || in ci_usb_role_switch_set()
913 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
915 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
917 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
928 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
966 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
972 if (!strncmp(buf, ci->roles[role]->name, in role_store()
973 strlen(ci->roles[rol in role_store()
[all...]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
H A Dci.h170 * @roles: array of supported roles for this controller
219 struct ci_role_driver *roles[CI_ROLE_END]; member
272 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
273 return ci->roles[ci->role]; in ci_role()
283 if (!ci->roles[role]) in ci_role_start()
286 ret = ci->roles[role]->start(ci); in ci_role_start()
312 ci->roles[role]->stop(ci); in ci_role_stop()
464 return ci->is_otg && ci->roles[CI_ROLE_HOST] && in ci_otg_is_fsm_mode()
465 ci->roles[CI_ROLE_GADGE in ci_otg_is_fsm_mode()
[all...]
H A Dcore.c651 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_get_role()
664 role = ci->roles[CI_ROLE_HOST] ? CI_ROLE_HOST in ci_get_role()
952 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
954 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
956 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
967 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
1005 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGE in role_store()
[all...]
/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dcore.c41 if (!cdns->roles[role]) in cdns3_role_start()
44 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) in cdns3_role_start()
48 ret = cdns->roles[role]->start(cdns); in cdns3_role_start()
50 cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; in cdns3_role_start()
63 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_INACTIVE) in cdns3_role_stop()
67 cdns->roles[role]->stop(cdns); in cdns3_role_stop()
68 cdns->roles[role]->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_role_stop()
279 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init()
285 * cdns3_hw_role_switch - switch roles based on HW state
685 if (cdns->roles[cdn in cdns3_controller_resume()
[all...]
/kernel/linux/linux-5.10/drivers/usb/roles/
H A DMakefile3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o
4 roles-y := class.o
/kernel/linux/linux-6.6/drivers/usb/roles/
H A DMakefile3 obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o
4 roles-y := class.o
/third_party/pulseaudio/src/modules/
H A Dstream-interaction.c421 const char *roles; in pa_stream_interaction_init() local
450 roles = pa_modargs_get_value(ma, "trigger_roles", NULL); in pa_stream_interaction_init()
451 if (roles) { in pa_stream_interaction_init()
454 while ((n = pa_split(roles, "/", &split_state))) { in pa_stream_interaction_init()
459 roles = pa_modargs_get_value(ma, "ducking_roles", NULL); in pa_stream_interaction_init()
460 if (roles) { in pa_stream_interaction_init()
463 while ((n = pa_split(roles, "/", &split_state))) { in pa_stream_interaction_init()
498 roles = pa_modargs_get_value(ma, "trigger_roles", NULL); in pa_stream_interaction_init()
499 if (roles) { in pa_stream_interaction_init()
503 while ((roles_in_group = pa_split(roles, "/", in pa_stream_interaction_init()
[all...]
/device/soc/rockchip/rk3568/hardware/omx_il/component/video/dec/
H A Dlibrary_register.c48 Rockchip_OSAL_Strcpy(rockchipComponents[i]->roles[0], (OMX_PTR)dec_core[i].roles); in Rockchip_OMX_COMPONENT_Library_Register()
/device/soc/rockchip/rk3568/hardware/omx_il/component/video/enc/
H A Dlibrary_register.c48 Rockchip_OSAL_Strcpy(rockchipComponents[i]->roles[0], (OMX_PTR)enc_core[i].roles); in Rockchip_OMX_COMPONENT_Library_Register()
/device/soc/rockchip/rk3568/hardware/omx_il/core/
H A DRockchip_OMX_Core.c321 if (Rockchip_OSAL_Strcmp(gComponentList[i].component.roles[j], role) == 0) { in OMX_GetComponentsOfRole()
339 OMX_OUT OMX_U8 **roles) in OMX_GetRolesOfComponent()
373 if (roles != NULL) { in OMX_GetRolesOfComponent()
375 Rockchip_OSAL_Strcpy(roles[i], gComponentList[compNum].component.roles[i]); in OMX_GetRolesOfComponent()
336 OMX_GetRolesOfComponent( OMX_IN OMX_STRING compName, OMX_INOUT OMX_U32 *pNumRoles, OMX_OUT OMX_U8 **roles) OMX_GetRolesOfComponent() argument
H A DRockchip_OMX_Core.h68 OMX_OUT OMX_U8 **roles);
74 char roles[32]; // roles played member
/kernel/linux/linux-5.10/include/scsi/
H A Dscsi_transport_srp.h14 u8 roles; member
38 * @roles: Role of this port - initiator or target.
59 u8 roles; member
H A Dscsi_transport_fc.h144 * for reporting (e.g. report roles). If you alter this list,
183 u32 roles; member
199 * A virtual port may support 1 or more FC4 roles. Typically it is a
201 * roles. FC port attributes for the vport will be reported on any
228 u32 roles; member
285 u32 roles; member
334 u32 roles; member
726 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready()
783 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
/kernel/linux/linux-6.6/include/scsi/
H A Dscsi_transport_srp.h14 u8 roles; member
38 * @roles: Role of this port - initiator or target.
59 u8 roles; member
/third_party/selinux/libsepol/tests/
H A Dtest-expander-users.c38 unsigned char *found; /* array of booleans of roles found */ in check_user_roles()
39 int extra = 0; /* number of extra roles found */ in check_user_roles()
49 ebitmap_for_each_positive_bit(&user->roles.roles, tnode, i) { in check_user_roles()
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_transport_fc.c300 * Define roles that are specific to port_id. Values are relative to ROLE_MASK.
771 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
772 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
784 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_li_stats_update()
785 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_li_stats_update()
818 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_delivery_stats_update()
819 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_delivery_stats_update()
851 (rport->roles & FC_PORT_ROLE_FCP_TARGET || in fc_fpin_peer_congn_stats_update()
852 rport->roles & FC_PORT_ROLE_NVME_TARGET)) { in fc_fpin_peer_congn_stats_update()
864 (rport->roles in fc_fpin_peer_congn_stats_update()
3488 fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) fc_remote_port_rolechg() argument
[all...]

Completed in 20 milliseconds

1234567