Lines Matching refs:system_server_ctx
674 let system_server_ctx = Context::new("u:r:system_server:s0")?; in check_keystore_permission_test() localVariable
675 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::add_auth()).is_ok()); in check_keystore_permission_test()
676 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::clear_ns()).is_ok()); in check_keystore_permission_test()
677 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::get_state()).is_ok()); in check_keystore_permission_test()
678 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::lock()).is_ok()); in check_keystore_permission_test()
679 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::reset()).is_ok()); in check_keystore_permission_test()
680 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::unlock()).is_ok()); in check_keystore_permission_test()
681 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::change_user()).is_ok()); in check_keystore_permission_test()
683 check_keystore_permission(&system_server_ctx, KeystorePerm::change_password()).is_ok() in check_keystore_permission_test()
685 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::clear_uid()).is_ok()); in check_keystore_permission_test()
702 let system_server_ctx = Context::new("u:r:system_server:s0")?; in check_grant_permission_app() localVariable
705 check_grant_permission(&system_server_ctx, SYSTEM_SERVER_PERMISSIONS_NO_GRANT, &key) in check_grant_permission_app()
710 &system_server_ctx, in check_grant_permission_app()
762 let system_server_ctx = Context::new("u:r:system_server:s0")?; in check_key_permission_domain_app() localVariable
768 assert!(check_key_permission(0, &system_server_ctx, KeyPerm::use_(), &key, &None).is_ok()); in check_key_permission_domain_app()
769 … assert!(check_key_permission(0, &system_server_ctx, KeyPerm::delete(), &key, &None).is_ok()); in check_key_permission_domain_app()
771 check_key_permission(0, &system_server_ctx, KeyPerm::get_info(), &key, &None).is_ok() in check_key_permission_domain_app()
773 … assert!(check_key_permission(0, &system_server_ctx, KeyPerm::rebind(), &key, &None).is_ok()); in check_key_permission_domain_app()
774 … assert!(check_key_permission(0, &system_server_ctx, KeyPerm::update(), &key, &None).is_ok()); in check_key_permission_domain_app()
775 assert!(check_key_permission(0, &system_server_ctx, KeyPerm::grant(), &key, &None).is_ok()); in check_key_permission_domain_app()
777 check_key_permission(0, &system_server_ctx, KeyPerm::use_dev_id(), &key, &None).is_ok() in check_key_permission_domain_app()
821 &system_server_ctx, in check_key_permission_domain_app()
829 &system_server_ctx, in check_key_permission_domain_app()
838 &system_server_ctx, in check_key_permission_domain_app()