Home
last modified time | relevance | path

Searched refs:KeyPerm (Results 1 – 7 of 7) sorted by relevance

/system/security/keystore2/src/
Dpermission.rs195 KeyPerm from KeyPermission with default (NONE, none) {
366 type Item = KeyPerm;
376 return Some(KeyPerm::from(KeyPermission(p))); in next()
383 impl From<KeyPerm> for KeyPermSet {
384 fn from(p: KeyPerm) -> Self { in from()
425 type Item = KeyPerm;
468 if access_vec.includes(KeyPerm::grant()) { in check_grant_permission()
507 perm: KeyPerm, in check_key_permission() argument
564 KeyPerm::manage_blob().to_selinux(), in check_key_permission()
586 KeyPerm::manage_blob(),
[all …]
Dservice.rs21 use crate::permission::{KeyPerm, KeystorePerm};
143 |k, av| check_key_permission(KeyPerm::get_info(), k, &av), in get_key_entry()
195 check_key_permission(KeyPerm::update(), k, &av) in update_subcomponent()
241 check_key_permission(KeyPerm::rebind(), &key, &None) in update_subcomponent()
274 match check_key_permission(KeyPerm::get_info(), &k, &None) { in list_entries()
314 check_key_permission(KeyPerm::delete(), k, &av).context("During delete_key.") in delete_key()
346 check_key_permission(KeyPerm::grant(), k, &None) in ungrant()
Dmaintenance.rs23 use crate::permission::{KeyPerm, KeystorePerm};
233 check_key_permission(KeyPerm::use_(), k, &av)?; in migrate_key_namespace()
234 check_key_permission(KeyPerm::delete(), k, &av)?; in migrate_key_namespace()
235 check_key_permission(KeyPerm::grant(), k, &av) in migrate_key_namespace()
251 check_key_permission(KeyPerm::rebind(), k, &None) in migrate_key_namespace()
Dsecurity_level.rs41 permission::KeyPerm,
219 check_key_permission(KeyPerm::use_(), key, &None) in create_operation()
222 check_key_permission(KeyPerm::req_forced_op(), key, &None).context( in create_operation()
251 check_key_permission(KeyPerm::use_(), k, &av)?; in create_operation()
253 check_key_permission(KeyPerm::req_forced_op(), k, &av)?; in create_operation()
418 check_key_permission(KeyPerm::gen_unique_id(), key, &None).context(concat!( in add_certificate_parameters()
490 check_key_permission(KeyPerm::rebind(), &key, &None).context("In generate_key.")?; in generate_key()
606 check_key_permission(KeyPerm::rebind(), &key, &None).context("In import_key.")?; in import_key()
691 check_key_permission(KeyPerm::rebind(), &key, &None).context("In import_wrapped_key.")?; in import_wrapped_key()
701 |k, av| check_key_permission(KeyPerm::use_(), k, &av), in import_wrapped_key()
[all …]
Dattestation_key_utils.rs21 use crate::permission::KeyPerm;
112 |k, av| check_key_permission(KeyPerm::use_(), k, &av), in load_attest_key_blob_and_cert()
Dutils.rs20 use crate::permission::{KeyPerm, KeyPermSet, KeystorePerm};
74 perm: KeyPerm, in check_key_permission() argument
Ddatabase.rs3221 use crate::permission::{KeyPerm, KeyPermSet};
3708 const PVEC1: KeyPermSet = key_perm_set![KeyPerm::use_(), KeyPerm::get_info()]; in test_grant_ungrant()
3709 const PVEC2: KeyPermSet = key_perm_set![KeyPerm::use_()]; in test_grant_ungrant()
4185 key_perm_set![KeyPerm::use_()], in test_insert_and_load_full_keyentry_from_grant()
4195 assert!(av.unwrap().includes(KeyPerm::use_())); in test_insert_and_load_full_keyentry_from_grant()
4242 key_perm_set![KeyPerm::use_()], in test_insert_and_load_full_keyentry_from_grant_by_key_id()
4261 assert!(av.unwrap().includes(KeyPerm::use_())); in test_insert_and_load_full_keyentry_from_grant_by_key_id()
5682 key_perm_set![KeyPerm::use_()], in test_verify_grant_table_size_reporting()