nuttx/fs/vfs
Abhishek Mishra 2977db2632 fs: add chroot() syscall
Add CONFIG_FS_CHROOT and POSIX chroot(). Store the jail as an
absolute path on the task group, and require euid 0 when user
identity is enabled.

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
2026-09-20 22:27:38 +08:00
..
CMakeLists.txt fs: add chroot() syscall 2026-09-20 22:27:38 +08:00
fs_chroot.c fs: add chroot() syscall 2026-09-20 22:27:38 +08:00
fs_chstat.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_close.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_dir.c fs: rename PSEUDOFS_SOFTLINKS to FS_LINKS 2026-08-27 01:12:33 +08:00
fs_dup.c
fs_dup2.c fs/vfs: fix bug about lost dup oflags in dup2 2025-07-15 19:46:24 +08:00
fs_dup3.c
fs_epoll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_eventfd.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_fchstat.c
fs_fcntl.c
fs_fstat.c fs/vfs/fs_fstat.c: fix write capability check in proxy_fstat() 2026-04-16 13:35:41 +02:00
fs_fstatfs.c
fs_fsync.c
fs_inotify.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
fs_ioctl.c
fs_link.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_lock.c fs/vfs/fs_lock.c: support flock for SHM driver 2026-06-11 09:10:50 +08:00
fs_lseek.c
fs_mkdir.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_open.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_poll.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
fs_pread.c
fs_profile.c nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr 2026-08-24 13:20:45 +08:00
fs_pseudofile.c nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr 2026-08-24 13:20:45 +08:00
fs_pwrite.c
fs_read.c fs/vfs/fs_read.c: Allow NULL iov_base when CONFIG_ARCH_TEXT_VBASE == 0 2026-08-16 16:19:23 -03:00
fs_readlink.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_rename.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_rmdir.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_select.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_sendfile.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_signalfd.c include/fcntl.h: remove O_RDOK/O_WROK aliases 2026-06-28 09:10:11 -03:00
fs_stat.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_statfs.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_symlink.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_syncfs.c
fs_timerfd.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
fs_truncate.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
fs_uio.c
fs_unlink.c fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fs_write.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
Kconfig fs/inode: add optional manual FD backtrace control via task group flag 2026-04-28 09:53:27 +02:00
Make.defs fs: add chroot() syscall 2026-09-20 22:27:38 +08:00
vfs.h fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00