nuttx/fs/vfs
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
..
fs_chstat.c
fs_close.c fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
fs_dir.c fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
fs_dup2.c fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
fs_dup.c vfs: Suppoprt F_DUPFD_CLOEXEC and MSG_CMSG_CLOEXEC 2023-02-02 01:00:10 +02:00
fs_epoll.c fs/fs_epoll: add oneshot list to handle the EPOLLONESHOT correctly 2023-03-23 09:43:27 +02:00
fs_eventfd.c fs: Move mmap callback before truncate in [file|mountpt]_operations 2023-01-04 17:43:59 +02:00
fs_fchstat.c
fs_fcntl.c vfs: Suppoprt F_DUPFD_CLOEXEC and MSG_CMSG_CLOEXEC 2023-02-02 01:00:10 +02:00
fs_fdopen.c fs/streams: Move the file streams from the group structure into TLS 2022-12-22 20:16:11 +08:00
fs_fstat.c
fs_fstatfs.c
fs_fsync.c fs: Don't guard fsync with CONFIG_DISABLE_MOUNTPOINT 2023-02-14 11:24:37 +08:00
fs_ioctl.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
fs_link.c fs: Implment link as a normal function instead macro 2023-02-04 18:31:23 -03:00
fs_lseek.c
fs_mkdir.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fs_open.c fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
fs_poll.c fs_poll: Fix wrong return value in CONFIG_BUILD_KERNEL 2023-05-25 20:41:20 +08:00
fs_pread.c
fs_pwrite.c
fs_read.c
fs_readlink.c
fs_rename.c Fixes in asprintf usage. 2023-04-19 02:48:39 +08:00
fs_rmdir.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fs_select.c libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
fs_sendfile.c
fs_signalfd.c fs: Move mmap callback before truncate in [file|mountpt]_operations 2023-01-04 17:43:59 +02:00
fs_stat.c sched/mqueue: make mqueue and mqueue sysv can disable separately 2022-11-16 20:03:40 +08:00
fs_statfs.c
fs_symlink.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fs_timerfd.c fs/timerfd: Reverse truncate and mmap field 2023-01-07 14:27:42 +02:00
fs_truncate.c fs: Don't guard ftruncate with CONFIG_DISABLE_MOUNTPOINT 2023-02-14 11:24:37 +08:00
fs_unlink.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fs_write.c
Kconfig fs/signalfd: using file descriptor to accept signal 2022-12-28 23:05:58 +08:00
Make.defs fs: Don't guard ftruncate with CONFIG_DISABLE_MOUNTPOINT 2023-02-14 11:24:37 +08:00