Searched refs:CLONE_NEWNS (Results 1 – 14 of 14) sorted by relevance
/aosp12/system/netd/tests/ |
H A D | netd_test.cpp | 101 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 D | mount_namespace.cpp | 266 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 D | service_parser.cpp | 148 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 D | service_utils.cpp | 215 if (info.flags & CLONE_NEWNS) { in EnterNamespaces()
|
/aosp12/art/libnativebridge/tests/ |
H A D | PreInitializeNativeBridge_test.cpp | 40 if (unshare(CLONE_NEWNS) != -1) { in TEST_F()
|
/aosp12/bionic/libc/kernel/uapi/linux/ |
H A D | sched.h | 32 #define CLONE_NEWNS 0x00020000 macro
|
/aosp12/system/apex/apexd/ |
H A D | apexd_test_utils.h | 204 if (setns(original_namespace_.get(), CLONE_NEWNS) == -1) { in ~MountNamespaceRestorer() 239 if (unshare(CLONE_NEWNS) != 0) { in SetUpApexTestEnvironment()
|
H A D | apexd_prepostinstall.cpp | 108 if (unshare(CLONE_NEWNS) != 0) { in RunFnInstall()
|
H A D | apexd_utils_test.cpp | 231 ASSERT_NE(-1, unshare(CLONE_NEWNS)); in TEST()
|
H A D | apexservice_test.cpp | 2567 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 D | native_bridge_art_interface.cc | 104 if (unshare(CLONE_NEWNS) == -1) { in PreInitializeNativeBridge()
|
/aosp12/frameworks/native/cmds/installd/ |
H A D | otapreopt_chroot.cpp | 140 if (unshare(CLONE_NEWNS) != 0) { in otapreopt_chroot()
|
/aosp12/system/vold/ |
H A D | VolumeManager.cpp | 495 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 D | com_android_internal_os_Zygote.cpp | 555 if (unshare(CLONE_NEWNS) == -1) { in ensureInAppMountNamespace() 1972 if (unshare(CLONE_NEWNS) == -1) { in UnmountStorageOnInit()
|