summaryrefslogtreecommitdiff
path: root/keystore2/test_utils
diff options
context:
space:
mode:
authorRajesh Nyamagoud <nyamagoud@google.com>2021-12-08 21:27:15 +0000
committerRajesh Nyamagoud <nyamagoud@google.com>2022-06-16 15:22:09 +0000
commitdc6fb238086cafb4f1486aac622ed993ab97f099 (patch)
tree25ba3245084280cb671bc270d1493a1f93483405 /keystore2/test_utils
parent066f33a9a6108c099c24bf3bf9112eb259235ddd (diff)
downloadsecurity-dc6fb238086cafb4f1486aac622ed993ab97f099.tar.gz
Adding tests to Create forced operation with different contexts.
Verify that the clients (for ex: clients with `vold` context) with `req_forced_op` permission are allowed to create forced (unpruneable) operations otherwise the creation of forced operation is denied. Bug: 194359114 Test: atest keystore2_client_test Change-Id: I73d85ac127274e623095e233368b0211f6738d6e
Diffstat (limited to 'keystore2/test_utils')
-rw-r--r--keystore2/test_utils/key_generations.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/keystore2/test_utils/key_generations.rs b/keystore2/test_utils/key_generations.rs
index f8628eec..6398f31c 100644
--- a/keystore2/test_utils/key_generations.rs
+++ b/keystore2/test_utils/key_generations.rs
@@ -30,6 +30,8 @@ use android_system_keystore2::binder::{ExceptionCode, Result as BinderResult};
/// Shell namespace.
pub const SELINUX_SHELL_NAMESPACE: i64 = 1;
+/// Vold namespace.
+pub const SELINUX_VOLD_NAMESPACE: i64 = 100;
/// SU context.
pub const TARGET_SU_CTX: &str = "u:r:su:s0";