提交 be2c9714 编写于 作者: L limeng151

在单步执行,为了规避获取的gid为最大权限0

Signed-off-by: Nlimeng151 <limeng151@huawei.com>
Change-Id: I8aea28b3b3774be4865afd586c5c53a6f08e94b8
上级 d9ab6e93
...@@ -67,6 +67,11 @@ protected: ...@@ -67,6 +67,11 @@ protected:
int rt = getgroups(groupNum, groupsArray); int rt = getgroups(groupNum, groupsArray);
EXPECT_EQ(rt, groupNum); EXPECT_EQ(rt, groupNum);
} }
void SetUp()
{
LOG("SetUp: set gid");
setgid(SHELL_GID);
}
void TearDown() void TearDown()
{ {
LOG("TearDown: reset uid and gid"); LOG("TearDown: reset uid and gid");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册