提交 0b69ff45 编写于 作者: Z zhangjian22 提交者: zhangjian22

fixed 613bb9a6 from https://gitee.com/jakemiao/startup_init_lite/pulls/1661

init支持设置CAP_PERFMON权限
Signed-off-by: N张建 <zhangjian22@huawei.com>
#I68CJQ
上级 87d37d74
......@@ -71,6 +71,9 @@ static unsigned int GetCapByString(const char *capStr)
{ "WAKE_ALARM", CAP_WAKE_ALARM },
{ "BLOCK_SUSPEND", CAP_BLOCK_SUSPEND },
{ "AUDIT_READ", CAP_AUDIT_READ },
#if defined CAP_PERFMON
{ "PERFMON", CAP_PERFMON },
#endif
};
int mapSize = (int)ARRAY_LENGTH(capStrCapNum);
int capLen = strlen("CAP_");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册