Home
last modified time | relevance | path

Searched refs:getcon (Results 1 – 6 of 6) sorted by relevance

/system/security/keystore2/selinux/src/
Dlib.rs231 pub fn getcon() -> Result<Context> { in getcon() function
236 match unsafe { selinux::getcon(&mut con) } { in getcon()
337 let context = getcon()?; in check_context()
486 assert_eq!(getpidcon(std::process::id() as i32).unwrap(), getcon().unwrap()); in test_getpidcon()
/system/core/init/
Dsubcontext_benchmark.cpp31 if (getcon(&context) != 0) { in BenchmarkSuccess()
Dreboot_test.cpp86 if (getcon(&ctx) == -1) { in GetSecurityContext()
Dservice.cpp73 if (getcon(&raw_con) == -1) { in ComputeContextFromExecutable()
/system/security/keystore2/src/
Dpermission.rs40 use selinux::getcon;
42 use tests::test_getcon as getcon;
436 let target_context = getcon().context("check_keystore_permission: getcon failed.")?; in check_keystore_permission()
459 Domain::APP => getcon().context("check_grant_permission: getcon failed.")?, in check_grant_permission()
531 getcon().context("check_key_permission: getcon failed.")? in check_key_permission()
661 let context = selinux::getcon()?; in check_context()
/system/hwservicemanager/
DAccessControl.cpp43 if (getcon(&mSeContext) != 0) { in AccessControl()