feat: 支持setns接口

BREAKING CHANGE:
支持setns接口对外变更:
1.新增setns接口

Close #I6D9Y0

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I9aacf9e5b8463e8e6c743a0041a5b2b18fdb0e12
This commit is contained in:
zhushengle
2023-02-07 13:42:25 +08:00
parent be50721826
commit 1ef64e26a1
40 changed files with 994 additions and 225 deletions

View File

@@ -378,6 +378,15 @@ int SysUnshare(int flags)
#endif
}
int SysSetns(int fd, int type)
{
#ifdef LOSCFG_KERNEL_CONTAINER
return OsSetNs(fd, type);
#else
return -ENOSYS;
#endif
}
unsigned int SysGetPPID(void)
{
#ifdef LOSCFG_PID_CONTAINER