nuttx/libs/libc/misc
hujun5 8fe8417ffb libc/fdcheck: add fdcheck module
In embedded development environments, due to the lack of address isolation between processes,
fd may be passed between processes and lead to misuse,

We have designed an fd cross-process automatic detection tool,
fdcheck_protect returns the fd containing the pid information,
indicating that the ownership of the current fd belongs to the pid and is not allowed to be used by other processes.
fdcheck_restore will obtain the true fd and check if the ownership of the fd is legal

For ease of understanding, let's give an example where
the following information is represented in 32-bit binary format

fd        00000000 00000000 00000000 10001010
pid       00000000 00000000 00000011 01010101
ret       00000000 00000011 01010101 10001010

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-06-10 02:19:58 +08:00
..
Kconfig libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
lib_crc8.c
lib_crc8ccitt.c
lib_crc8table.c
lib_crc16.c
lib_crc16ccitt.c
lib_crc32.c
lib_crc64.c
lib_cxx_initialize.c
lib_debug.c
lib_dumpbuffer.c
lib_dumpvbuffer.c
lib_envpath.c Replace all sprintf with snprintf 2023-05-08 09:57:01 +02:00
lib_err.c
lib_execinfo.c
lib_fchmodat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_fdcheck.c libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
lib_fdsan.c libc/misc: add fdsan module 2023-05-17 10:24:42 +08:00
lib_fnmatch.c
lib_fstatat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_ftok.c
lib_getfullpath.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_getrandom.c
lib_glob.c
lib_impure.c
lib_kbddecode.c
lib_kbdencode.c
lib_memfd.c
lib_mkdirat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_mkfifo.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_mknod.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_mutex.c
lib_ncompress.c
lib_openat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_slcddecode.c
lib_slcdencode.c
lib_tea_decrypt.c
lib_tea_encrypt.c
lib_uadd32x64.c
lib_uadd64.c
lib_umask.c
lib_umul32.c
lib_umul32x64.c
lib_umul64.c
lib_usub64.c
lib_usub64x32.c
lib_utimensat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_utsname.c
lib_xorshift128.c
Make.defs libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00