nuttx/binfmt
fangxinyong 903e87a7bd builtin: support uid/gid config for binfs app
Implement I_SUID/I_SGID feature for binfs in the POSIX compliant way.
If set-user-ID bit is set in the file permissions, then the effective
user ID of process shall be set to UID of the new process image file.

test case:
hello example emulates to set uid and file set-user-ID bit, and call
geteuid and getegid API.
UID  = 2000
GID  = 3000
MODE = 06555

nsh> ls -l /bin/hello
 -r-sr-sr-x    2000    3000       0 hello
nsh> hello
geteuid:2000
getegid:3000

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-14 01:37:00 +08:00
..
libelf binfmt: support euid of process set from the file system 2023-08-12 02:18:25 +08:00
libnxflat binfmt: Move [elf|nxflat]_[un]initialize to private header file 2023-07-10 23:03:17 +03:00
binfmt_copyargv.c binfmt: Let binfmt_copyargv return error code 2022-10-19 08:22:56 +09:00
binfmt_coredump.c elf/coredump: add support of dump task stack without memory segments 2023-05-24 22:34:47 +08:00
binfmt_dumpmodule.c sched/spawn: Support task_spawnattr_[set|get]stackaddr 2022-10-31 12:46:58 +09:00
binfmt_exec.c binfmt: add enter_critical_section 2023-08-10 20:46:59 +08:00
binfmt_execmodule.c binfmt: support euid of process set from the file system 2023-08-12 02:18:25 +08:00
binfmt_execsymtab.c libc/symtab: Don't include symtab.h in the header files 2023-07-10 23:03:17 +03:00
binfmt_exit.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_globals.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_initialize.c binfmt: Move [elf|nxflat]_[un]initialize to private header file 2023-07-10 23:03:17 +03:00
binfmt_loadmodule.c binfmt: remove sched_[un]lock 2023-07-26 09:43:51 -07:00
binfmt_register.c binfmt: remove sched_[un]lock 2023-07-26 09:43:51 -07:00
binfmt_unloadmodule.c sched/addrenv: Remove up_addrenv_restore 2023-02-08 02:51:23 +08:00
binfmt_unregister.c binfmt: remove sched_[un]lock 2023-07-26 09:43:51 -07:00
binfmt.h binfmt: Move [elf|nxflat]_[un]initialize to private header file 2023-07-10 23:03:17 +03:00
builtin.c builtin: support uid/gid config for binfs app 2023-08-14 01:37:00 +08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
elf.c binfmt: support euid of process set from the file system 2023-08-12 02:18:25 +08:00
Kconfig binfmt: Change the default of BINFMT_DISABLE to DEFAULT_SMALL 2023-08-10 11:35:41 +03:00
Makefile binfmt: Move [elf|nxflat]_[un]initialize to private header file 2023-07-10 23:03:17 +03:00
nxflat.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00