feat: 支持IPC容器

BREAKING CHANGE:
支持ipc容器及增强对外变更:
1.clone 支持CLONE_NEWIPC
2.增加”/proc/[pid]/container/ipc" 用于查询容器信息

Close #I6AVMY

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I6a3c248d2d66a5342994c6e0b0aecddea8e32c72
This commit is contained in:
zhushengle
2023-01-17 14:55:14 +08:00
parent c0c9bbdfb4
commit 34814c58a3
36 changed files with 1706 additions and 159 deletions

View File

@@ -136,11 +136,12 @@ VOID OsMntContainersDestroy(LosProcessCB *curr)
SCHEDULER_LOCK(intSave);
MntContainer *mntContainer = curr->container->mntContainer;
if (mntContainer != NULL) {
LOS_AtomicDec(&mntContainer->rc);
if (LOS_AtomicRead(&mntContainer->rc) == 0) {
g_currentMntContainerNum--;
SCHEDULER_UNLOCK(intSave);
FreeMountList(&mntContainer->mountList);
curr->container->mntContainer = NULL;
SCHEDULER_UNLOCK(intSave);
(VOID)LOS_MemFree(m_aucSysMem1, mntContainer);
return;
}