Lines Matching refs:check_keystore_permission
435 pub fn check_keystore_permission(caller_ctx: &CStr, perm: KeystorePerm) -> anyhow::Result<()> { in check_keystore_permission() function
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()
687 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::add_auth())); in check_keystore_permission_test()
688 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::clear_ns())); in check_keystore_permission_test()
689 assert!(check_keystore_permission(&shell_ctx, KeystorePerm::get_state()).is_ok()); in check_keystore_permission_test()
690 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::list())); in check_keystore_permission_test()
691 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::lock())); in check_keystore_permission_test()
692 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::reset())); in check_keystore_permission_test()
693 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::unlock())); in check_keystore_permission_test()
694 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::change_user())); in check_keystore_permission_test()
695 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::change_password())); in check_keystore_permission_test()
696 assert_perm_failed!(check_keystore_permission(&shell_ctx, KeystorePerm::clear_uid())); in check_keystore_permission_test()