Lines Matching refs:KeyPerm
195 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(),
587 KeyPerm::delete(),
588 KeyPerm::use_dev_id(),
589 KeyPerm::req_forced_op(),
590 KeyPerm::gen_unique_id(),
591 KeyPerm::grant(),
592 KeyPerm::get_info(),
593 KeyPerm::rebind(),
594 KeyPerm::update(),
595 KeyPerm::use_(),
596 KeyPerm::convert_storage_key_to_ephemeral(),
600 KeyPerm::delete(),
601 KeyPerm::use_dev_id(),
603 KeyPerm::get_info(),
604 KeyPerm::rebind(),
605 KeyPerm::update(),
606 KeyPerm::use_(),
610 KeyPerm::manage_blob(),
611 KeyPerm::delete(),
612 KeyPerm::use_dev_id(),
613 KeyPerm::req_forced_op(),
614 KeyPerm::gen_unique_id(),
616 KeyPerm::get_info(),
617 KeyPerm::rebind(),
618 KeyPerm::update(),
619 KeyPerm::use_(),
620 KeyPerm::convert_storage_key_to_ephemeral(),
624 KeyPerm::delete(),
625 KeyPerm::get_info(),
626 KeyPerm::rebind(),
627 KeyPerm::update(),
628 KeyPerm::use_(),
711 KeyPerm::grant().into(), in check_grant_permission_app()
731 assert_perm_failed!(check_grant_permission(&sctx, KeyPerm::grant().into(), &key)); in check_grant_permission_selinux()
746 KeyPerm::grant(), in check_key_permission_domain_grant()
754 KeyPerm::use_(), in check_key_permission_domain_grant()
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()
780 check_key_permission(0, &gmscore_app, KeyPerm::gen_unique_id(), &key, &None).is_ok() in check_key_permission_domain_app()
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()
792 KeyPerm::req_forced_op(), in check_key_permission_domain_app()
799 KeyPerm::manage_blob(), in check_key_permission_domain_app()
806 KeyPerm::use_dev_id(), in check_key_permission_domain_app()
813 KeyPerm::gen_unique_id(), in check_key_permission_domain_app()
822 KeyPerm::use_(), in check_key_permission_domain_app()
830 KeyPerm::use_(), in check_key_permission_domain_app()
832 &Some(key_perm_set![KeyPerm::use_()]) in check_key_permission_domain_app()
839 KeyPerm::use_(), in check_key_permission_domain_app()
841 &Some(key_perm_set![KeyPerm::get_info()]) in check_key_permission_domain_app()
858 assert!(check_key_permission(0, &sctx, KeyPerm::use_(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
859 assert!(check_key_permission(0, &sctx, KeyPerm::delete(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
860 assert!(check_key_permission(0, &sctx, KeyPerm::get_info(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
861 assert!(check_key_permission(0, &sctx, KeyPerm::rebind(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
862 assert!(check_key_permission(0, &sctx, KeyPerm::update(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
863 assert!(check_key_permission(0, &sctx, KeyPerm::grant(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
864 assert!(check_key_permission(0, &sctx, KeyPerm::manage_blob(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
865 assert!(check_key_permission(0, &sctx, KeyPerm::use_dev_id(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
866 assert!(check_key_permission(0, &sctx, KeyPerm::gen_unique_id(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
867 assert!(check_key_permission(0, &sctx, KeyPerm::req_forced_op(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
869 assert!(check_key_permission(0, &sctx, KeyPerm::use_(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
870 assert!(check_key_permission(0, &sctx, KeyPerm::delete(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
871 assert!(check_key_permission(0, &sctx, KeyPerm::get_info(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
872 assert!(check_key_permission(0, &sctx, KeyPerm::rebind(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
873 assert!(check_key_permission(0, &sctx, KeyPerm::update(), &key, &None).is_ok()); in check_key_permission_domain_selinux()
874 assert_perm_failed!(check_key_permission(0, &sctx, KeyPerm::grant(), &key, &None)); in check_key_permission_domain_selinux()
878 KeyPerm::req_forced_op(), in check_key_permission_domain_selinux()
885 KeyPerm::manage_blob(), in check_key_permission_domain_selinux()
889 assert_perm_failed!(check_key_permission(0, &sctx, KeyPerm::use_dev_id(), &key, &None)); in check_key_permission_domain_selinux()
893 KeyPerm::gen_unique_id(), in check_key_permission_domain_selinux()
912 check_key_permission(0, &sctx, KeyPerm::use_(), &key, &None) in check_key_permission_domain_blob()
914 assert_perm_failed!(check_key_permission(0, &sctx, KeyPerm::use_(), &key, &None)); in check_key_permission_domain_blob()
928 KeyPerm::use_(), in check_key_permission_domain_key_id()
943 KeyPerm::manage_blob(), in key_perm_set_all_test()
944 KeyPerm::delete(), in key_perm_set_all_test()
945 KeyPerm::use_dev_id(), in key_perm_set_all_test()
946 KeyPerm::req_forced_op(), in key_perm_set_all_test()
947 KeyPerm::gen_unique_id(), in key_perm_set_all_test()
948 KeyPerm::grant(), in key_perm_set_all_test()
949 KeyPerm::get_info(), in key_perm_set_all_test()
950 KeyPerm::rebind(), in key_perm_set_all_test()
951 KeyPerm::update(), in key_perm_set_all_test()
952 KeyPerm::use_() // Test if the macro accepts missing comma at the end of the list. in key_perm_set_all_test()
970 KeyPerm::manage_blob(), in key_perm_set_sparse_test()
971 KeyPerm::req_forced_op(), in key_perm_set_sparse_test()
972 KeyPerm::gen_unique_id(), in key_perm_set_sparse_test()
973 KeyPerm::update(), in key_perm_set_sparse_test()
974 KeyPerm::use_(), // Test if macro accepts the comma at the end of the list. in key_perm_set_sparse_test()
993 KeyPerm::manage_blob(), in key_perm_set_include_subset_test()
994 KeyPerm::delete(), in key_perm_set_include_subset_test()
995 KeyPerm::use_dev_id(), in key_perm_set_include_subset_test()
996 KeyPerm::req_forced_op(), in key_perm_set_include_subset_test()
997 KeyPerm::gen_unique_id(), in key_perm_set_include_subset_test()
998 KeyPerm::grant(), in key_perm_set_include_subset_test()
999 KeyPerm::get_info(), in key_perm_set_include_subset_test()
1000 KeyPerm::rebind(), in key_perm_set_include_subset_test()
1001 KeyPerm::update(), in key_perm_set_include_subset_test()
1002 KeyPerm::use_(), in key_perm_set_include_subset_test()
1005 KeyPerm::manage_blob(), in key_perm_set_include_subset_test()
1006 KeyPerm::delete(), in key_perm_set_include_subset_test()
1007 KeyPerm::rebind(), in key_perm_set_include_subset_test()
1008 KeyPerm::update(), in key_perm_set_include_subset_test()
1009 KeyPerm::use_(), in key_perm_set_include_subset_test()
1017 KeyPerm::manage_blob(), in key_perm_set_include_equal_test()
1018 KeyPerm::delete(), in key_perm_set_include_equal_test()
1019 KeyPerm::rebind(), in key_perm_set_include_equal_test()
1020 KeyPerm::update(), in key_perm_set_include_equal_test()
1021 KeyPerm::use_(), in key_perm_set_include_equal_test()
1024 KeyPerm::manage_blob(), in key_perm_set_include_equal_test()
1025 KeyPerm::delete(), in key_perm_set_include_equal_test()
1026 KeyPerm::rebind(), in key_perm_set_include_equal_test()
1027 KeyPerm::update(), in key_perm_set_include_equal_test()
1028 KeyPerm::use_(), in key_perm_set_include_equal_test()
1036 KeyPerm::manage_blob(), in key_perm_set_include_overlap_test()
1037 KeyPerm::delete(), in key_perm_set_include_overlap_test()
1038 KeyPerm::grant(), // only in v1 in key_perm_set_include_overlap_test()
1039 KeyPerm::rebind(), in key_perm_set_include_overlap_test()
1040 KeyPerm::update(), in key_perm_set_include_overlap_test()
1041 KeyPerm::use_(), in key_perm_set_include_overlap_test()
1044 KeyPerm::manage_blob(), in key_perm_set_include_overlap_test()
1045 KeyPerm::delete(), in key_perm_set_include_overlap_test()
1046 KeyPerm::req_forced_op(), // only in v2 in key_perm_set_include_overlap_test()
1047 KeyPerm::rebind(), in key_perm_set_include_overlap_test()
1048 KeyPerm::update(), in key_perm_set_include_overlap_test()
1049 KeyPerm::use_(), in key_perm_set_include_overlap_test()
1056 let v1 = key_perm_set![KeyPerm::manage_blob(), KeyPerm::delete(), KeyPerm::grant(),]; in key_perm_set_include_no_overlap_test()
1058 KeyPerm::req_forced_op(), in key_perm_set_include_no_overlap_test()
1059 KeyPerm::rebind(), in key_perm_set_include_no_overlap_test()
1060 KeyPerm::update(), in key_perm_set_include_no_overlap_test()
1061 KeyPerm::use_(), in key_perm_set_include_no_overlap_test()