nuttx/binfmt
Abhishek Mishra 72192fc8bc fs/binfmt: Enforce POSIX execute permissions prior to binary load
Adds a pre-load permission check in exec_internal() to verify the
calling task has the required execute (x) bits for the target file.
Properly evaluates root (euid == 0), owner, group, and other permissions.

This ensures POSIX compliance and cleanly rejects unauthorized files
with -EACCES before they reach the ELF loader, preventing unnecessary
memory allocation and downstream hardware execution faults.

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
2026-06-17 17:11:07 +08:00
..
libnxflat include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt.h fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
binfmt_checkexec.c fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
binfmt_copyactions.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_copyargv.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_dumpmodule.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_exec.c fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
binfmt_execmodule.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_execsymtab.c sched: binfmt remove csection 2026-01-11 20:44:35 +08:00
binfmt_exit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_globals.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_initialize.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_loadmodule.c fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
binfmt_register.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_unloadmodule.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfmt_unregister.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
builtin.c fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
CMakeLists.txt fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
elf.c fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
Kconfig binfmt: Add a configuration flag to store the module filename 2025-11-01 22:59:47 +08:00
Makefile fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00
nxflat.c fs/binfmt: Enforce POSIX execute permissions prior to binary load 2026-06-17 17:11:07 +08:00