Home
last modified time | relevance | path

Searched refs:nsType (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/startup/init/services/sandbox/
H A Dsandbox_namespace.c36 int UnshareNamespace(int nsType) in UnshareNamespace() argument
38 if (nsType == CLONE_NEWNS) { in UnshareNamespace()
39 if (unshare(nsType) < 0) { in UnshareNamespace()
51 int SetNamespace(int nsFd, int nsType) in SetNamespace() argument
57 if (nsType != CLONE_NEWNS) { in SetNamespace()
61 return setns(nsFd, nsType); in SetNamespace()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/netshareclient/src/
H A Dnetwork_share_request_parcel.cpp55 int32_t nsType = 0; in Unmarshalling() local
56 if (!parcel.ReadInt32(nsType)) { in Unmarshalling()
59 ptr->networkShareType_ = nsType; in Unmarshalling()
/ohos5.0/base/startup/init/services/sandbox/include/
H A Dsandbox_namespace.h25 int UnshareNamespace(int nsType);
26 int SetNamespace(int nsFd, int nsType);
/ohos5.0/base/startup/appspawn/modules/common/
H A Dappspawn_namespace.c226 static int SetPidNamespace(int nsPidFd, int nsType) in SetPidNamespace() argument
228 APPSPAWN_LOGI("SetPidNamespace 0x%{public}x", nsType); in SetPidNamespace()
230 if (setns(nsPidFd, nsType) < 0) { in SetPidNamespace()
231 APPSPAWN_LOGE("set pid namespace nsType:%{public}d failed", nsType); in SetPidNamespace()