Home
last modified time | relevance | path

Searched refs:check_access (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore2/selinux/src/
Dlib.rs283 pub fn check_access(source: &CStr, target: &CStr, tclass: &str, perm: &str) -> Result<()> { in check_access() function
371 check_access(&sctx, &tctx, "keystore2_key", "use")?; in context_from_string()
411 check_access(
423 assert!(check_access(
454 assert!(check_access(
463 check_access(&unpriv_context, &ks_context, "keystore2", stringify!($perm))
/system/security/keystore2/src/
Dpermission.rs437 selinux::check_access(caller_ctx, &target_context, "keystore2", perm.to_selinux()) in check_keystore_permission()
465 selinux::check_access(caller_ctx, &target_context, "keystore2_key", "grant") in check_grant_permission()
473 selinux::check_access(caller_ctx, &target_context, "keystore2_key", p.to_selinux()) in check_grant_permission()
560 selinux::check_access( in check_key_permission()
575 selinux::check_access(caller_ctx, &target_context, "keystore2_key", perm.to_selinux()) in check_key_permission()