feat: 支持setns接口
BREAKING CHANGE: 支持setns接口对外变更: 1.新增setns接口 Close #I6D9Y0 Signed-off-by: zhushengle <zhushengle@huawei.com> Change-Id: I9aacf9e5b8463e8e6c743a0041a5b2b18fdb0e12
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user