Home
last modified time | relevance | path

Searched refs:perms (Results 1 - 25 of 459) sorted by relevance

12345678910>>...19

/foundation/ability/ability_runtime/test/mock/mock_sa_call/
H A Dmock_sa_call.h29 const char* perms[] = { in IsMockSaCallWithPermission() local
30 perms[0] = "ohos.permission.ACCESS_DLP_FILE", in IsMockSaCallWithPermission()
31 perms[1] = "ohos.permission.CLEAN_APPLICATION_DATA", in IsMockSaCallWithPermission()
32 perms[2] = "ohos.permission.CLEAN_BACKGROUND_PROCESSES", in IsMockSaCallWithPermission()
33 perms[3] = "ohos.permission.GET_RUNNING_INFO", in IsMockSaCallWithPermission()
34 perms[4] = "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS", in IsMockSaCallWithPermission()
35 perms[5] = "ohos.permission.MANAGE_MISSIONS", in IsMockSaCallWithPermission()
36 perms[6] = "ohos.permission.RUNNING_STATE_OBSERVER", in IsMockSaCallWithPermission()
37 perms[7] = "ohos.permission.SET_ABILITY_CONTROLLER", in IsMockSaCallWithPermission()
38 perms[ in IsMockSaCallWithPermission()
74 const char* perms[] = { IsMockCheckObserverCallerPermission() local
96 const char* perms[] = { IsMockProcessCachePermission() local
118 const char* perms[] = { IsMockSpecificSystemAbilityAccessPermission() local
[all...]
/kernel/linux/linux-6.6/security/apparmor/
H A Dpolicy_compat.c73 * map_old_perms - map old file perms layout to the new layout
100 static void compute_fperms_allow(struct aa_perms *perms, struct aa_dfa *dfa, in compute_fperms_allow() argument
103 perms->allow |= AA_MAY_GETATTR; in compute_fperms_allow()
107 perms->allow |= AA_MAY_CHANGE_PROFILE; in compute_fperms_allow()
109 perms->allow |= AA_MAY_ONEXEC; in compute_fperms_allow()
115 struct aa_perms perms = { }; in compute_fperms_user() local
117 perms.allow = map_old_perms(dfa_user_allow(dfa, state)); in compute_fperms_user()
118 perms.audit = map_old_perms(dfa_user_audit(dfa, state)); in compute_fperms_user()
119 perms.quiet = map_old_perms(dfa_user_quiet(dfa, state)); in compute_fperms_user()
120 perms in compute_fperms_user()
130 struct aa_perms perms = { }; compute_fperms_other() local
176 struct aa_perms *perms; compute_xmatch_perms() local
213 struct aa_perms perms = { }; compute_perms_entry() local
[all...]
H A Dlib.c20 #include "include/perms.h"
279 * aa_audit_perms_cb - generic callback fn for auditing perms
306 * aa_apply_modes_to_perms - apply namespace and profile flags to perms
307 * @profile: that perms where computed from
308 * @perms: perms to apply mode modifiers to
310 * TODO: split into profile and ns based flags for when accumulating perms
312 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument
316 perms->audit = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
319 perms in aa_apply_modes_to_perms()
337 aa_profile_match_label(struct aa_profile *profile, struct aa_ruleset *rules, struct aa_label *label, int type, u32 request, struct aa_perms *perms) aa_profile_match_label() argument
359 struct aa_perms perms; aa_profile_label_perm() local
388 aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, u32 request, struct apparmor_audit_data *ad, void (*cb)(struct audit_buffer *, void *)) aa_check_perms() argument
[all...]
H A Dfile.c82 * @perms: the permissions computed for the request (NOT NULL)
95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file()
114 u32 mask = perms->audit; in aa_audit_file()
119 /* mask off perms that are not being force audited */ in aa_audit_file()
127 ad.request = ad.request & ~perms->allow; in aa_audit_file()
130 if (ad.request & perms->kill) in aa_audit_file()
134 if ((ad.request & perms->quiet) && in aa_audit_file()
137 ad.request &= ~perms->quiet; in aa_audit_file()
143 ad.denied = ad.request & ~perms->allow; in aa_audit_file()
184 * aa_lookup_fperms - convert dfa compressed perms t
94 aa_audit_file(const struct cred *subj_cred, struct aa_profile *profile, struct aa_perms *perms, const char *op, u32 request, const char *name, const char *target, struct aa_label *tlabel, kuid_t ouid, const char *info, int error) aa_audit_file() argument
217 aa_str_perms(struct aa_policydb *file_rules, aa_state_t start, const char *name, struct path_cond *cond, struct aa_perms *perms) aa_str_perms() argument
228 __aa_path_perm(const char *op, const struct cred *subj_cred, struct aa_profile *profile, const char *name, u32 request, struct path_cond *cond, int flags, struct aa_perms *perms) __aa_path_perm() argument
249 profile_path_perm(const char *op, const struct cred *subj_cred, struct aa_profile *profile, const struct path *path, char *buffer, u32 request, struct path_cond *cond, int flags, struct aa_perms *perms) profile_path_perm() argument
287 struct aa_perms perms = {}; aa_path_perm() local
335 struct aa_perms lperms = {}, perms; profile_path_link() local
490 struct aa_perms perms = {}; __file_path_perm() local
[all...]
H A Ddomain.c109 * label_compound_match - find perms for full compound label
110 * @profile: profile to find perms for
116 * @perms: perms struct to set
121 * @perms should be preinitialized with allperms OR a previous permission
127 struct aa_perms *perms) in label_compound_match()
146 *perms = allperms; in label_compound_match()
158 *perms = *(aa_lookup_fperms(&(rules->file), state, &cond)); in label_compound_match()
159 aa_apply_modes_to_perms(profile, perms); in label_compound_match()
160 if ((perms in label_compound_match()
124 label_compound_match(struct aa_profile *profile, struct aa_label *label, bool stack, aa_state_t state, bool subns, u32 request, struct aa_perms *perms) label_compound_match() argument
186 label_components_match(struct aa_profile *profile, struct aa_label *label, bool stack, aa_state_t start, bool subns, u32 request, struct aa_perms *perms) label_components_match() argument
249 label_match(struct aa_profile *profile, struct aa_label *label, bool stack, aa_state_t state, bool subns, u32 request, struct aa_perms *perms) label_match() argument
282 change_profile_perms(struct aa_profile *profile, struct aa_label *target, bool stack, u32 request, aa_state_t start, struct aa_perms *perms) change_profile_perms() argument
640 struct aa_perms perms = {}; profile_transition() local
740 struct aa_perms perms = {}; profile_onexec() local
1181 struct aa_perms perms = {}; aa_change_hat() local
1288 change_profile_perms_wrapper(const char *op, const char *name, const struct cred *subj_cred, struct aa_profile *profile, struct aa_label *target, bool stack, u32 request, struct aa_perms *perms) change_profile_perms_wrapper() argument
1329 struct aa_perms perms = {}; aa_change_profile() local
[all...]
H A Dmount.c126 * @perms: the permissions computed for the request (NOT NULL)
137 struct aa_perms *perms, const char *info, int error) in audit_mount()
143 u32 mask = perms->audit; in audit_mount()
148 /* mask off perms that are not being force audited */ in audit_mount()
156 request = request & ~perms->allow; in audit_mount()
158 if (request & perms->kill) in audit_mount()
162 if ((request & perms->quiet) && in audit_mount()
165 request &= ~perms->quiet; in audit_mount()
177 if (data && (perms->audit & AA_AUDIT_DATA)) in audit_mount()
217 "failed perms chec
132 audit_mount(const struct cred *subj_cred, struct aa_profile *profile, const char *op, const char *name, const char *src_name, const char *type, const char *trans, unsigned long flags, const void *data, u32 request, struct aa_perms *perms, const char *info, int error) audit_mount() argument
224 do_match_mnt(struct aa_policydb *policy, aa_state_t start, const char *mntpnt, const char *devname, const char *type, unsigned long flags, void *data, bool binary, struct aa_perms *perms) do_match_mnt() argument
310 struct aa_perms perms = { }; match_mnt_path_str() local
607 struct aa_perms perms = { }; profile_umount() local
673 struct aa_perms perms = { }; build_pivotroot() local
[all...]
/foundation/ability/ability_runtime/test/mock/common/src/
H A Dmock_native_token.cpp29 const char** perms = new const char* [6]; in SetNativeToken() local
30 perms[permission] = "ohos.permission.DISTRIBUTED_DATASYNC"; in SetNativeToken()
31 perms[permission1] = "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"; in SetNativeToken()
32 perms[permission2] = "ohos.permission.UPDATE_CONFIGURATION"; in SetNativeToken()
33 perms[permission3] = "ohos.permission.GET_RUNNING_INFO"; in SetNativeToken()
34 perms[permission4] = "ohos.permission.MANAGE_MISSIONS"; in SetNativeToken()
35 perms[permission5] = "ohos.permission.CLEAN_BACKGROUND_PROCESSES"; in SetNativeToken()
41 .perms = perms, in SetNativeToken()
49 delete[] perms; in SetNativeToken()
[all...]
/kernel/linux/linux-5.10/security/apparmor/
H A Dfile.c78 * @perms: the permissions computed for the request (NOT NULL)
90 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument
109 u32 mask = perms->audit; in aa_audit_file()
114 /* mask off perms that are not being force audited */ in aa_audit_file()
122 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file()
125 if (aad(&sa)->request & perms->kill) in aa_audit_file()
129 if ((aad(&sa)->request & perms->quiet) && in aa_audit_file()
132 aad(&sa)->request &= ~perms->quiet; in aa_audit_file()
138 aad(&sa)->denied = aad(&sa)->request & ~perms->allow; in aa_audit_file()
176 * map_old_perms - map old file perms layou
221 struct aa_perms perms = { }; aa_compute_fperms() local
255 aa_str_perms(struct aa_dfa *dfa, unsigned int start, const char *name, struct path_cond *cond, struct aa_perms *perms) aa_str_perms() argument
266 __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, u32 request, struct path_cond *cond, int flags, struct aa_perms *perms) __aa_path_perm() argument
282 profile_path_perm(const char *op, struct aa_profile *profile, const struct path *path, char *buffer, u32 request, struct path_cond *cond, int flags, struct aa_perms *perms) profile_path_perm() argument
317 struct aa_perms perms = {}; aa_path_perm() local
362 struct aa_perms lperms = {}, perms; profile_path_link() local
510 struct aa_perms perms = {}; __file_path_perm() local
[all...]
H A Dlib.c20 #include "include/perms.h"
258 * aa_audit_perms_cb - generic callback fn for auditing perms
284 * aa_apply_modes_to_perms - apply namespace and profile flags to perms
285 * @profile: that perms where computed from
286 * @perms: perms to apply mode modifiers to
288 * TODO: split into profile and ns based flags for when accumulating perms
290 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument
294 perms->audit = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
297 perms in aa_apply_modes_to_perms()
325 aa_compute_perms(struct aa_dfa *dfa, unsigned int state, struct aa_perms *perms) aa_compute_perms() argument
381 aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, int type, u32 request, struct aa_perms *perms) aa_profile_match_label() argument
399 struct aa_perms perms; aa_profile_label_perm() local
429 aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, u32 request, struct common_audit_data *sa, void (*cb)(struct audit_buffer *, void *)) aa_check_perms() argument
[all...]
H A Dmount.c124 * @perms: the permissions computed for the request (NOT NULL)
134 struct aa_perms *perms, const char *info, int error) in audit_mount()
140 u32 mask = perms->audit; in audit_mount()
145 /* mask off perms that are not being force audited */ in audit_mount()
153 request = request & ~perms->allow; in audit_mount()
155 if (request & perms->kill) in audit_mount()
159 if ((request & perms->quiet) && in audit_mount()
162 request &= ~perms->quiet; in audit_mount()
173 if (data && (perms->audit & AA_AUDIT_DATA)) in audit_mount()
216 struct aa_perms perms in compute_mnt_perms() local
130 audit_mount(struct aa_profile *profile, const char *op, const char *name, const char *src_name, const char *type, const char *trans, unsigned long flags, const void *data, u32 request, struct aa_perms *perms, const char *info, int error) audit_mount() argument
240 do_match_mnt(struct aa_dfa *dfa, unsigned int start, const char *mntpnt, const char *devname, const char *type, unsigned long flags, void *data, bool binary, struct aa_perms *perms) do_match_mnt() argument
322 struct aa_perms perms = { }; match_mnt_path_str() local
586 struct aa_perms perms = { }; profile_umount() local
647 struct aa_perms perms = { }; build_pivotroot() local
[all...]
H A Ddomain.c117 * label_compound_match - find perms for full compound label
118 * @profile: profile to find perms for
124 * @perms: perms struct to set
129 * @perms should be preinitialized with allperms OR a previous permission
135 struct aa_perms *perms) in label_compound_match()
152 *perms = allperms; in label_compound_match()
164 *perms = aa_compute_fperms(profile->file.dfa, state, &cond); in label_compound_match()
165 aa_apply_modes_to_perms(profile, perms); in label_compound_match()
166 if ((perms in label_compound_match()
132 label_compound_match(struct aa_profile *profile, struct aa_label *label, bool stack, unsigned int state, bool subns, u32 request, struct aa_perms *perms) label_compound_match() argument
192 label_components_match(struct aa_profile *profile, struct aa_label *label, bool stack, unsigned int start, bool subns, u32 request, struct aa_perms *perms) label_components_match() argument
253 label_match(struct aa_profile *profile, struct aa_label *label, bool stack, unsigned int state, bool subns, u32 request, struct aa_perms *perms) label_match() argument
286 change_profile_perms(struct aa_profile *profile, struct aa_label *target, bool stack, u32 request, unsigned int start, struct aa_perms *perms) change_profile_perms() argument
630 struct aa_perms perms = {}; profile_transition() local
726 struct aa_perms perms = {}; profile_onexec() local
1152 struct aa_perms perms = {}; aa_change_hat() local
1258 change_profile_perms_wrapper(const char *op, const char *name, struct aa_profile *profile, struct aa_label *target, bool stack, u32 request, struct aa_perms *perms) change_profile_perms_wrapper() argument
1295 struct aa_perms perms = {}; aa_change_profile() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_service.cpp33 auto perms = std::make_unique<const char *[]>(permission.size()); in SetAccessTokenPermission() local
35 perms[i] = permission[i].c_str(); in SetAccessTokenPermission()
43 .perms = perms.get(), in SetAccessTokenPermission()
86 vector<string> perms; in Init() local
87 perms.push_back("ohos.permission.READ_MEDIA"); in Init()
88 perms.push_back("ohos.permission.WRITE_MEDIA"); in Init()
89 perms.push_back("ohos.permission.MEDIA_LOCATION"); in Init()
90 perms.push_back("ohos.permission.FILE_ACCESS_MANAGER"); in Init()
91 perms in Init()
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/
H A Ddistributed_sched_test_util.cpp87 static const char *perms[] = { in MockPermission() local
94 MockProcessAndPermission(DISTSCHED_PROCESS_NAME, perms, PERMS_NUM); in MockPermission()
99 static const char *perms[] = { in MockBundlePermission() local
102 MockProcessAndPermission("DistributedSchedPermissionTest", perms, sizeof(perms) / sizeof(perms[0])); in MockBundlePermission()
107 static const char *perms[] = { in MockManageMissions() local
110 MockProcessAndPermission("DistributedSchedPermissionTest", perms, sizeof(perms) / sizeof(perms[ in MockManageMissions()
132 MockProcessAndPermission(const char* processName, const char *perms[], int32_t permsNum) MockProcessAndPermission() argument
[all...]
/third_party/selinux/libselinux/src/
H A Dmapping.c23 access_vector_t perms[sizeof(access_vector_t) * 8]; member
83 while (p_in->perms[k]) { in selinux_set_mapping()
85 if (!*p_in->perms[k]) { in selinux_set_mapping()
89 p_out->perms[k] = string_to_av_perm(p_out->value, in selinux_set_mapping()
90 p_in->perms[k]); in selinux_set_mapping()
91 if (!p_out->perms[k]) { in selinux_set_mapping()
94 p_in->perms[k], p_in->name); in selinux_set_mapping()
148 kperm |= current_mapping[tclass].perms[i]; in unmap_perm()
193 if (kperm & current_mapping[tclass].perms[i]) { in map_perm()
195 kperm &= ~current_mapping[tclass].perms[ in map_perm()
[all...]
H A Davc.c43 security_class_t tclass, access_vector_t perms,
49 access_vector_t perms; member
912 access_vector_t perms, in avc_add_callback()
916 security_class_t tclass, access_vector_t perms) in avc_add_callback()
932 c->perms = perms; in avc_add_callback()
945 access_vector_t perms) in avc_update_node()
949 node->ae.avd.allowed |= perms; in avc_update_node()
953 node->ae.avd.allowed &= ~perms; in avc_update_node()
956 node->ae.avd.auditallow |= perms; in avc_update_node()
909 avc_add_callback(int (*callback) (uint32_t event, security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, access_vector_t * out_retained), uint32_t events, security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms) avc_add_callback() argument
944 avc_update_node(uint32_t event, struct avc_node *node, access_vector_t perms) avc_update_node() argument
970 avc_update_cache(uint32_t event, security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms) avc_update_cache() argument
1008 avc_control(uint32_t event, security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, access_vector_t * out_retained) avc_control() argument
1068 avc_ss_grant(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno) avc_ss_grant() argument
1089 avc_ss_try_revoke(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, access_vector_t * out_retained) avc_ss_try_revoke() argument
1109 avc_ss_revoke(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno) avc_ss_revoke() argument
1144 avc_ss_set_auditallow(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, uint32_t enable) avc_ss_set_auditallow() argument
1165 avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, uint32_t enable) avc_ss_set_auditdeny() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner/src/
H A Dmedialibrary_scan.cpp73 vector<string> perms; in main() local
74 perms.push_back("ohos.permission.READ_MEDIA"); in main()
75 perms.push_back("ohos.permission.WRITE_MEDIA"); in main()
76 perms.push_back("ohos.permission.READ_IMAGEVIDEO"); in main()
77 perms.push_back("ohos.permission.WRITE_IMAGEVIDEO"); in main()
78 perms.push_back("ohos.permission.FILE_ACCESS_MANAGER"); in main()
79 perms.push_back("ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"); in main()
81 PermissionUtilsUnitTest::SetAccessTokenPermission("MediaLibraryScan", perms, tokenId); in main()
/kernel/linux/linux-6.6/security/apparmor/include/
H A Dfile.h18 #include "perms.h"
40 * @perms: the permission the file was opened with
112 struct aa_profile *profile, struct aa_perms *perms,
121 struct aa_perms *perms);
147 u32 perms = 0; in aa_map_file_to_perms() local
150 perms |= MAY_WRITE; in aa_map_file_to_perms()
152 perms |= MAY_READ; in aa_map_file_to_perms()
154 if ((flags & O_APPEND) && (perms & MAY_WRITE)) in aa_map_file_to_perms()
155 perms = (perms in aa_map_file_to_perms()
[all...]
/third_party/selinux/libsepol/src/
H A Dassertion.c49 const class_perm_node_t *curperm, uint32_t perms) in report_failure()
57 sepol_av_to_string(p, curperm->tclass, perms)); in report_failure()
63 sepol_av_to_string(p, curperm->tclass, perms)); in report_failure()
69 sepol_av_to_string(p, curperm->tclass, perms)); in report_failure()
99 rc = extended_permissions_and(neverallow->perms, allow->perms); in check_extended_permissions()
102 rc = xperm_test(neverallow->driver, allow->perms); in check_extended_permissions()
105 rc = xperm_test(allow->driver, neverallow->perms); in check_extended_permissions()
108 rc = extended_permissions_and(neverallow->perms, allow->perms); in check_extended_permissions()
47 report_failure(sepol_handle_t *handle, policydb_t *p, const avrule_t *avrule, unsigned int stype, unsigned int ttype, const class_perm_node_t *curperm, uint32_t perms) report_failure() argument
145 report_assertion_extended_permissions(sepol_handle_t *handle, policydb_t *p, const avrule_t *avrule, unsigned int stype, unsigned int ttype, const class_perm_node_t *curperm, uint32_t perms, avtab_key_t *k, avtab_t *avtab) report_assertion_extended_permissions() argument
221 uint32_t perms; report_assertion_avtab_matches() local
[all...]
/foundation/window/window_manager/test/common/utils/src/
H A Dcommon_test_utils.cpp78 .perms = nullptr, in SetAceessTokenPermission()
89 const char** perms, const int permCount) in SetAceessTokenPermission()
91 if (perms == nullptr || permCount == 0) { in SetAceessTokenPermission()
100 .perms = perms, in SetAceessTokenPermission()
112 const char **perms = new const char *[1]; in GuaranteeFloatWindowPermission() local
113 perms[0] = "ohos.permission.SYSTEM_FLOAT_WINDOW"; in GuaranteeFloatWindowPermission()
119 .perms = perms, in GuaranteeFloatWindowPermission()
129 delete[] perms; in GuaranteeFloatWindowPermission()
88 SetAceessTokenPermission(const std::string processName, const char** perms, const int permCount) SetAceessTokenPermission() argument
[all...]
/kernel/linux/linux-5.10/security/apparmor/include/
H A Dfile.h18 #include "perms.h"
39 * @perms: the permission the file was opened with
111 /* FIXME: split perms from dfa and match this to description
159 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,
167 * @perms: permission table indexed by the matched state accept entry of @dfa
172 * an index into @perms. If a named exec transition is required it is
178 /* struct perms perms; */
187 struct aa_perms *perms);
191 int flags, struct aa_perms *perms);
219 u32 perms = 0; aa_map_file_to_perms() local
[all...]
/foundation/ability/form_fwk/test/mock/src/
H A Dremote_native_token.cpp23 const char **perms = new const char *[1]; in SetNativeToken() local
24 perms[0] = "ohos.permission.DISTRIBUTED_DATASYNC"; // system_core in SetNativeToken()
30 .perms = perms, in SetNativeToken()
38 delete[] perms; in SetNativeToken()
/foundation/ability/ability_runtime/test/mock/remote_native_token_mock/
H A Dremote_native_token.cpp23 const char** perms = new const char* [1]; in SetNativeToken() local
24 perms[0] = "ohos.permission.DISTRIBUTED_DATASYNC"; // system_core in SetNativeToken()
30 .perms = perms, in SetNativeToken()
38 delete[] perms; in SetNativeToken()
/foundation/communication/dsoftbus/tests/sdk/common/src/
H A Dsoftbus_access_token_test.cpp24 const char** perms = new const char *[2]; in SetAceessTokenPermission() local
25 perms[0] = OHOS_PERMISSION_DISTRIBUTED_DATASYNC; in SetAceessTokenPermission()
26 perms[1] = OHOS_PERMISSION_DISTRIBUTED_SOFTBUS_CENTER; in SetAceessTokenPermission()
32 .perms = perms, in SetAceessTokenPermission()
/kernel/linux/linux-6.6/arch/arm/mm/
H A Dinit.c394 static void set_section_perms(struct section_perm *perms, int n, bool set, in set_section_perms() argument
404 if (!IS_ALIGNED(perms[i].start, SECTION_SIZE) || in set_section_perms()
405 !IS_ALIGNED(perms[i].end, SECTION_SIZE)) { in set_section_perms()
407 perms[i].name, perms[i].start, perms[i].end, in set_section_perms()
412 for (addr = perms[i].start; in set_section_perms()
413 addr < perms[i].end; in set_section_perms()
415 section_update(addr, perms[i].mask, in set_section_perms()
416 set ? perms[ in set_section_perms()
426 update_sections_early(struct section_perm perms[], int n) update_sections_early() argument
[all...]
/kernel/linux/linux-6.6/drivers/s390/crypto/
H A Dzcrypt_api.c122 struct ap_perms perms; member
167 for (i = 0; i < sizeof(zcdndev->perms.ioctlm) / sizeof(long); i++) in ioctlmask_show()
168 n += sysfs_emit_at(buf, n, "%016lx", zcdndev->perms.ioctlm[i]); in ioctlmask_show()
183 rc = ap_parse_mask_str(buf, zcdndev->perms.ioctlm, in ioctlmask_store()
204 for (i = 0; i < sizeof(zcdndev->perms.apm) / sizeof(long); i++) in apmask_show()
205 n += sysfs_emit_at(buf, n, "%016lx", zcdndev->perms.apm[i]); in apmask_show()
220 rc = ap_parse_mask_str(buf, zcdndev->perms.apm, in apmask_store()
241 for (i = 0; i < sizeof(zcdndev->perms.aqm) / sizeof(long); i++) in aqmask_show()
242 n += sysfs_emit_at(buf, n, "%016lx", zcdndev->perms.aqm[i]); in aqmask_show()
257 rc = ap_parse_mask_str(buf, zcdndev->perms in aqmask_store()
504 struct ap_perms *perms = &ap_perms; zcrypt_open() local
547 zcrypt_check_ioctl(struct ap_perms *perms, unsigned int cmd) zcrypt_check_ioctl() argument
565 zcrypt_check_card(struct ap_perms *perms, int card) zcrypt_check_card() argument
570 zcrypt_check_queue(struct ap_perms *perms, int queue) zcrypt_check_queue() argument
637 zcrypt_rsa_modexpo(struct ap_perms *perms, struct zcrypt_track *tr, struct ica_rsa_modexpo *mex) zcrypt_rsa_modexpo() argument
742 zcrypt_rsa_crt(struct ap_perms *perms, struct zcrypt_track *tr, struct ica_rsa_modexpo_crt *crt) zcrypt_rsa_crt() argument
847 _zcrypt_send_cprb(bool userspace, struct ap_perms *perms, struct zcrypt_track *tr, struct ica_xcRB *xcrb) _zcrypt_send_cprb() argument
1004 _zcrypt_send_ep11_cprb(bool userspace, struct ap_perms *perms, struct zcrypt_track *tr, struct ep11_urb *xcrb) _zcrypt_send_ep11_cprb() argument
1421 icarsamodexpo_ioctl(struct ap_perms *perms, unsigned long arg) icarsamodexpo_ioctl() argument
1453 icarsacrt_ioctl(struct ap_perms *perms, unsigned long arg) icarsacrt_ioctl() argument
1485 zsecsendcprb_ioctl(struct ap_perms *perms, unsigned long arg) zsecsendcprb_ioctl() argument
1518 zsendep11cprb_ioctl(struct ap_perms *perms, unsigned long arg) zsendep11cprb_ioctl() argument
1554 struct ap_perms *perms = zcrypt_unlocked_ioctl() local
1691 trans_modexpo32(struct ap_perms *perms, struct file *filp, unsigned int cmd, unsigned long arg) trans_modexpo32() argument
1741 trans_modexpo_crt32(struct ap_perms *perms, struct file *filp, unsigned int cmd, unsigned long arg) trans_modexpo_crt32() argument
1802 trans_xcrb32(struct ap_perms *perms, struct file *filp, unsigned int cmd, unsigned long arg) trans_xcrb32() argument
1860 struct ap_perms *perms = zcrypt_compat_ioctl() local
[all...]

Completed in 15 milliseconds

12345678910>>...19