From 0b69ff45b2a25cdbd653d44c4fe9b63d075dd1ff Mon Sep 17 00:00:00 2001 From: zhangjian22 Date: Thu, 12 Jan 2023 14:31:04 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20613bb9a=20from=20https://gitee.com/jake?= =?UTF-8?q?miao/startup=5Finit=5Flite/pulls/1661=20init=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AECAP=5FPERFMON=E6=9D=83=E9=99=90=20Signed-off-?= =?UTF-8?q?by:=20=E5=BC=A0=E5=BB=BA=20=20#I68CJQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/init/init_capability.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/init/init_capability.c b/services/init/init_capability.c index 6089e846..8cc813c8 100644 --- a/services/init/init_capability.c +++ b/services/init/init_capability.c @@ -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_"); -- GitLab