harmony 鸿蒙Native API Symbols That May Fail to Call Due to Permission Control

  • 2023-06-24
  • 浏览 (622)

Native API Symbols That May Fail to Call Due to Permission Control

Before using the following interfaces, ensure that the application entity has the corresponding permission.

Symbol Possible Cause
mlockall usr namespace isolation or lack of CAP_IPC_LOCK privilege
swapon usr namespace isolation
swapoff usr namespace isolation
stime usr namespace isolation or lack of CAP_SYS_TIME privilege
settimeofday usr namespace isolation or lack of CAP_SYS_TIME privilege
adjtime usr namespace isolation or lack of CAP_SYS_TIME privilege
clock_settime usr namespace isolation or lack of CAP_SYS_TIME privilege
klogctl usr namespace isolation or lack of CAP_SYS_ADMIN/CAP_SYSLOG privilege

你可能感兴趣的鸿蒙文章

harmony 鸿蒙libc++

harmony 鸿蒙Native API Symbols Not Exported

harmony 鸿蒙libc

0  赞