Lines Matching refs:shell_ctx

686         let shell_ctx = Context::new("u:r:shell:s0")?;  in check_keystore_permission_test()  localVariable
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()
703 let shell_ctx = Context::new("u:r:shell:s0")?; in check_grant_permission_app() localVariable
715 assert_perm_failed!(check_grant_permission(&shell_ctx, UNPRIV_PERMS, &key)); in check_grant_permission_app()
763 let shell_ctx = Context::new("u:r:shell:s0")?; in check_key_permission_domain_app() localVariable
783 assert!(check_key_permission(0, &shell_ctx, KeyPerm::use_(), &key, &None).is_ok()); in check_key_permission_domain_app()
784 assert!(check_key_permission(0, &shell_ctx, KeyPerm::delete(), &key, &None).is_ok()); in check_key_permission_domain_app()
785 assert!(check_key_permission(0, &shell_ctx, KeyPerm::get_info(), &key, &None).is_ok()); in check_key_permission_domain_app()
786 assert!(check_key_permission(0, &shell_ctx, KeyPerm::rebind(), &key, &None).is_ok()); in check_key_permission_domain_app()
787 assert!(check_key_permission(0, &shell_ctx, KeyPerm::update(), &key, &None).is_ok()); in check_key_permission_domain_app()
788 assert_perm_failed!(check_key_permission(0, &shell_ctx, KeyPerm::grant(), &key, &None)); in check_key_permission_domain_app()
791 &shell_ctx, in check_key_permission_domain_app()
798 &shell_ctx, in check_key_permission_domain_app()
805 &shell_ctx, in check_key_permission_domain_app()
812 &shell_ctx, in check_key_permission_domain_app()