未验证 提交 268831e1 编写于 作者: O openharmony_ci 提交者: Gitee

!1686 init支持设置CAP_PERFMON权限-挑单1018

Merge pull request !1686 from zhangjian22/cherry-pick-1673573820
......@@ -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.
先完成此消息的编辑!
想要评论请 注册