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 libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc8ccitt.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc8table.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc16.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc16ccitt.c arm64/a64: Add driver for MIPI DSI 2022-12-14 22:37:32 +08:00
lib_crc32.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc64.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_cxx_initialize.c arch: Change the linker generated symbols from uint32_t to uint8_t * 2022-09-24 21:26:56 +02:00
lib_debug.c nuttx: add some missing FAR 2022-12-21 10:56:45 +08:00
lib_dumpbuffer.c libc: add lib_dump utils 2022-08-24 16:58:10 +08:00
lib_dumpvbuffer.c libc: add lib_dump utils 2022-08-24 16:58:10 +08:00
lib_envpath.c Replace all sprintf with snprintf 2023-05-08 09:57:01 +02:00
lib_err.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
lib_execinfo.c libc: backtrace_malloc change sprintf to snprintf 2022-01-20 14:33:29 +01:00
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 libc: Rename match to fnmatch 2021-08-02 08:23:35 -03:00
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 libc/ftok: Map token to the root pseduo file system directory 2022-09-20 16:21:06 +08:00
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 libc: Fix getrandom() bug: Didn't propagate read error 2022-07-01 11:51:53 +08:00
lib_glob.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00
lib_impure.c newlib/impure: declare thread specific file only if __NEWLIB__ is defined. 2022-10-12 17:22:24 +08:00
lib_kbddecode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_kbdencode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_memfd.c libc: Move memfd related stuff to sys/mman.h 2023-02-13 16:00:37 +01:00
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 misc/mutex: fix assertion if nxmutex_reset() before nxmutex_unlock() 2023-02-04 02:13:15 +08:00
lib_ncompress.c Remove the remain MIN/MAX like macro 2023-02-03 23:22:41 +08:00
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 libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_slcdencode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_tea_decrypt.c
lib_tea_encrypt.c
lib_uadd32x64.c
lib_uadd64.c
lib_umask.c fs: Save umask to tls_task_s for non kernel mode only 2021-08-02 15:59:51 -03:00
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 Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_xorshift128.c
Make.defs libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00