Home
last modified time | relevance | path

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

/aosp12/system/security/keystore2/selinux/src/
H A 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()
/aosp12/system/security/keystore2/src/
H A 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()
/aosp12/system/core/init/
H A Dsubcontext_benchmark.cpp31 if (getcon(&context) != 0) { in BenchmarkSuccess()
H A Dreboot_test.cpp86 if (getcon(&ctx) == -1) { in GetSecurityContext()
H A Dservice.cpp73 if (getcon(&raw_con) == -1) { in ComputeContextFromExecutable()
/aosp12/system/hwservicemanager/
H A DAccessControl.cpp43 if (getcon(&mSeContext) != 0) { in AccessControl()
/aosp12/frameworks/native/cmds/servicemanager/
H A DAccess.cpp93 CHECK(getcon(&mThisProcessContext) == 0); in Access()
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_SELinux.cpp293 int ret = getcon(&tmp); in getCon()
/aosp12/frameworks/av/drm/drmserver/
H A DDrmManagerService.cpp119 if (selinux_enabled > 0 && getcon(&drmserver_context) != 0) { in instantiate()
/aosp12/frameworks/native/libs/binder/rust/tests/
H A Dintegration.rs293 assert_eq!(selinux_sys::getcon(&mut out_ptr), 0); in get_selinux_context()
/aosp12/packages/modules/adb/daemon/
H A Dshell_service.cpp377 if (getcon(&con) == 0) { in ForkAndExec()