Home
last modified time | relevance | path

Searched refs:CLONE_NEWNS (Results 1 – 14 of 14) sorted by relevance

/aosp12/system/netd/tests/
H A Dnetd_test.cpp101 nsTest(CLONE_NEWNS, true, thread); in TEST()
121 nsTest(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWNET, true, thread); in TEST()
/aosp12/system/core/init/
H A Dmount_namespace.cpp266 if (unshare(CLONE_NEWNS) == -1) { in SetupMountNamespaces()
273 if (setns(bootstrap_ns_fd.get(), CLONE_NEWNS) == -1) { in SetupMountNamespaces()
298 if (setns(ns_fd.get(), CLONE_NEWNS) == -1) { in SwitchToMountNamespaceIfNeeded()
H A Dservice_parser.cpp148 service_->namespaces_.flags |= CLONE_NEWNS; in ParseEnterNamespace()
287 service_->namespaces_.flags |= CLONE_NEWNS; in ParseNamespace()
289 service_->namespaces_.flags |= CLONE_NEWNS; in ParseNamespace()
H A Dservice_utils.cpp215 if (info.flags & CLONE_NEWNS) { in EnterNamespaces()
/aosp12/art/libnativebridge/tests/
H A DPreInitializeNativeBridge_test.cpp40 if (unshare(CLONE_NEWNS) != -1) { in TEST_F()
/aosp12/bionic/libc/kernel/uapi/linux/
H A Dsched.h32 #define CLONE_NEWNS 0x00020000 macro
/aosp12/system/apex/apexd/
H A Dapexd_test_utils.h204 if (setns(original_namespace_.get(), CLONE_NEWNS) == -1) { in ~MountNamespaceRestorer()
239 if (unshare(CLONE_NEWNS) != 0) { in SetUpApexTestEnvironment()
H A Dapexd_prepostinstall.cpp108 if (unshare(CLONE_NEWNS) != 0) { in RunFnInstall()
H A Dapexd_utils_test.cpp231 ASSERT_NE(-1, unshare(CLONE_NEWNS)); in TEST()
H A Dapexservice_test.cpp2567 int res = setns(target_fd.get(), CLONE_NEWNS); in ExecInMountNamespaceOf()
2572 res = setns(my_fd.get(), CLONE_NEWNS); in ExecInMountNamespaceOf()
/aosp12/art/runtime/
H A Dnative_bridge_art_interface.cc104 if (unshare(CLONE_NEWNS) == -1) { in PreInitializeNativeBridge()
/aosp12/frameworks/native/cmds/installd/
H A Dotapreopt_chroot.cpp140 if (unshare(CLONE_NEWNS) != 0) { in otapreopt_chroot()
/aosp12/system/vold/
H A DVolumeManager.cpp495 if (setns(nsFd, CLONE_NEWNS) != 0) { in childProcess()
684 if (setns(nsFd, CLONE_NEWNS) != 0) { in umountStorageDirs()
722 if (setns(nsFd, CLONE_NEWNS) != 0) { in remountStorageDirs()
/aosp12/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp555 if (unshare(CLONE_NEWNS) == -1) { in ensureInAppMountNamespace()
1972 if (unshare(CLONE_NEWNS) == -1) { in UnmountStorageOnInit()