diff --git a/en/application-dev/reference/native-lib/third_party_libc/musl-permission-control-symbol.md b/en/application-dev/reference/native-lib/third_party_libc/musl-permission-control-symbol.md new file mode 100644 index 0000000000000000000000000000000000000000..877a9da2d46e2e45391d24abfd81574658f8de76 --- /dev/null +++ b/en/application-dev/reference/native-lib/third_party_libc/musl-permission-control-symbol.md @@ -0,0 +1,12 @@ +# Native Api Symbols That May Invoke Failed Because of Permission Control + +| Symbols | Possiable Reason | +| --- | --- | +| 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 | \ No newline at end of file diff --git a/en/application-dev/reference/native-lib/third_party_libc/musl.md b/en/application-dev/reference/native-lib/third_party_libc/musl.md index e791dcd86d0c0bb1fa725fa63f203ebd139d22aa..3f9b520e2d072da601530ef6cf86d7ec9e45d90e 100644 --- a/en/application-dev/reference/native-lib/third_party_libc/musl.md +++ b/en/application-dev/reference/native-lib/third_party_libc/musl.md @@ -35,6 +35,8 @@ C standard library includes a set of header files in accordance with standard C [Native API Symbols Not Exported](musl-peculiar-symbol.md) +[Native Api Symbols That May Invoke Failed Because of Permission Control](musl-permission-control-symbol.md) + ## libc++ [libc++](https://libcxx.llvm.org/) is an implementation of the C++ standard library. diff --git a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl-permission-control-symbol.md b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl-permission-control-symbol.md new file mode 100644 index 0000000000000000000000000000000000000000..7b89cbf64fc5cc81b095aac26200e22d04ee9e84 --- /dev/null +++ b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl-permission-control-symbol.md @@ -0,0 +1,12 @@ +# Native api中由于权限管控可能调用失败的符号列表 + +| 符号名 | 调用失败可能的原因 | +| --- | --- | +| 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 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md index 88766ad86a7acfcd04aba191f695d894009ca5d2..3fc992e9a9b9a6c2096eec828766d270f4fb829c 100644 --- a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md +++ b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md @@ -35,6 +35,8 @@ C标准函数库是在C语言程序设计中,所有符合标准的头文件的 [native api中没有导出的符号列表](musl-peculiar-symbol.md) +[native api由于权限管控可能调用失败的符号列表](musl-permission-control-symbol.md) + ## 标准C++库 [libc++](https://libcxx.llvm.org/)是C++标准库的一种实现。