feat: 支持网络容器
BREAKING CHANGE: 支持网络容器对外变更: 1.支持网络容器 2.setns, clone, unshare接口支持CLONE_NEWNET Close #I6HPH2 Signed-off-by: zhushengle <zhushengle@huawei.com> Change-Id: Ibaa11056982d465d4006680c8d3fa4ae2b9f25b5
This commit is contained in:
@@ -165,6 +165,18 @@ HWTEST_F(ProcessFsTest, ItProcessFs010, TestSize.Level0)
|
||||
ItProcessFs010();
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Process_fs_Test_011
|
||||
* @tc.desc: Process mount directory test
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: issueI6E2LG
|
||||
* @tc.author:
|
||||
*/
|
||||
HWTEST_F(ProcessFsTest, ItProcessFs011, TestSize.Level0)
|
||||
{
|
||||
ItProcessFs011();
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Process_fs_Test_012
|
||||
* @tc.desc: Process mount directory test
|
||||
|
||||
@@ -56,7 +56,7 @@ void ItProcessPlimitsIpc009(void)
|
||||
ASSERT_EQ(ret, 0);
|
||||
|
||||
ret = ReadFile("/proc/plimits/test/ipc.shm_limit", buf);
|
||||
ASSERT_STREQ(buf, "104857600\n");
|
||||
ASSERT_STREQ(buf, "4294967295\n");
|
||||
|
||||
shmid = shmget(IPC_PRIVATE, PAGE_SIZE, acessMode | IPC_CREAT);
|
||||
ASSERT_NE(shmid, -1);
|
||||
|
||||
@@ -92,7 +92,6 @@ void ItProcessPlimitsIpc010(void)
|
||||
ret = shmctl(shmid, IPC_RMID, nullptr);
|
||||
ASSERT_NE(ret, -1);
|
||||
shmctl(shmid_1, IPC_RMID, nullptr);
|
||||
shmctl(shmid, IPC_RMID, nullptr);
|
||||
|
||||
ret = rmdir(subPlimitsPath.c_str());
|
||||
ASSERT_EQ(ret, 0);
|
||||
|
||||
Reference in New Issue
Block a user