incubator-nuttx/fs
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
..
aio sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
binfs fs/vfs: Add a new argument(size_t len) to inode_getpath 2023-05-08 09:57:01 +02:00
cromfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
driver semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
fat semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
hostfs fs: Replace strncat with strlcat 2023-05-08 09:57:01 +02:00
inode libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
littlefs Add patch for littlefs to use kmm_malloc/free on kernel with MMU. 2023-04-28 16:45:05 +08:00
mmap semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
mount Replace all sprintf with snprintf 2023-05-08 09:57:01 +02:00
mqueue fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
nfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
nxffs fs/nxffs/Kconfig: Fix indentation 2023-05-10 00:45:29 +08:00
partition fs/partition: register partition device if caller doesn't provide handler 2023-05-27 20:23:17 -03:00
procfs mempool:Add mail_info support for multiple pools 2023-06-08 23:56:40 +08:00
romfs fs/vfs: Add a new argument(size_t len) to inode_getpath 2023-05-08 09:57:01 +02:00
rpmsgfs fs: Replace strncat with strlcat 2023-05-08 09:57:01 +02:00
semaphore
shm fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
smartfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
socket vfs/fs_truncate.c:Add socket judgment to return correct errno. 2023-01-17 10:29:41 +08:00
spiffs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
tmpfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
unionfs fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
userfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
vfs libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Makefile Minor style clean up 2023-01-28 19:53:20 +02:00
fs_initialize.c fs: Flush the file system cache in BOARDIOC_POWEROFF too 2023-04-21 20:37:59 +03:00