walnux/include/nuttx
fangxinyong 2d73e86b47 binfmt: support euid of process set from the file system
From posix spec, if set-user-ID bit is set in the file permissions,
then the effective user ID of the new process shall be set to the
user ID of the new process image file.
Let's ignore whether ST_NOSUID is set on the mounted file system.

https://pubs.opengroup.org/onlinepubs/007904875/functions/exec.html

test step:
hello example build as a module and call geteuid and getegid API.
then set file binary set-user-ID bit on the host.

$ chmod +s apps/bin/hello

nsh> mount -t hostfs -o fs=. /data
nsh> ls -l /data/apps/bin/hello
 -rwsrwsr-x    1000    1000    9264 /data/apps/bin/hello
nsh> /data/apps/bin/hello
geteuid:1000
getegid:1000

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-12 02:18:25 +08:00
..
1wire
analog drivers: remove redundant parentheses 2023-07-31 18:56:40 -07:00
audio audio:add format sbc support 2023-08-07 06:44:33 -07:00
binfmt binfmt: support euid of process set from the file system 2023-08-12 02:18:25 +08:00
can include: Fix nxstyle errors 2023-05-04 02:07:01 +08:00
clk
contactless
crypto crypto: Initial copy from https://github.com/openbsd/sys/crypto 2022-12-14 02:33:56 +08:00
dma include/dma: support to config dst/src drq for every dma channel 2023-04-22 01:02:51 +08:00
drivers drivers: fix devascii_register warning 2023-08-11 21:20:13 +08:00
eeprom
efuse Add ATSAMA5D2/D4 Secure Fuse Controller (SFC) driver 2023-05-12 16:29:48 -03:00
fs fs: add pipe type support to inode 2023-08-05 06:32:50 -07:00
himem
hwspinlock hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore) 2023-07-25 13:03:31 +02:00
i2c
input Update mouse.h 2023-08-11 20:37:11 +08:00
ioexpander ioexpander: define IOEXPANDER_OPTION_NONGENERIC option 2023-08-04 05:54:24 -07:00
lcd drivers/lcd: add area alignment ioctl for lcd driver 2023-07-13 01:03:18 +08:00
leds drivers/userled: add an interface to support LED effects. 2023-06-27 14:44:00 -03:00
lib arch/esp32: use kernel internal API for libc stubs 2023-08-08 11:58:29 -03:00
math math acceleration api support FFT 2023-08-11 20:38:00 +08:00
mbox drivers/mbox: Don't reference the nonexistent CONFIG_MBOX 2022-11-07 10:14:20 +01:00
mm mm/map: limit the count of memory mapping for the task 2023-08-02 22:57:28 -07:00
modem cxd56/alt1250: Change power on sequence 2023-07-06 13:18:57 +08:00
motor motor: Add calibration and selftest 2023-01-28 19:54:35 +02:00
mtd driver/mtd_config : add mtdconfig_register_by_path() 2023-08-07 01:08:24 -07:00
net tun: move tun related macro definitions out of CONFIG_NET_TUN 2023-08-11 15:26:39 +08:00
note note: directly returns the taskname pointer 2023-08-11 13:27:17 +08:00
nx Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
power battery:add goldfish battery driver 2023-08-11 15:30:35 +08:00
rc
reset Fixed the reset format error 2023-08-11 20:39:16 +08:00
rf
rptun
segger new feature on trace dump support segger-rtt 2023-07-16 14:37:21 +03:00
sensors feature: sensor: add force sensor 2023-08-09 21:57:58 +08:00
serial serial/uart_16550: Wait before setting Line Control Register (Synopsys DesignWare 8250) 2023-08-03 08:38:07 +02:00
spi driver/spi_slave: support spi_slave asynchronous 2023-07-28 19:11:16 +03:00
syslog syslog: add syslog channel filtering function 2023-07-13 01:04:07 +08:00
timers qemu:add qemu rtc driver. 2023-08-02 03:27:55 -07:00
usb usbadb: add usbadb boardctl 2023-08-07 11:23:36 +08:00
usrsock move usrsock to kernel space 2023-01-11 15:14:03 +08:00
video drivers/video: add nuttx goldfish camera driver 2023-08-09 18:30:11 +08:00
virtio virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
wireless include/nuttx/wireless/lte/lte.h: add fw_version field to lte_version_t 2023-07-23 19:56:38 +08:00
.gitignore
addrenv.h mm_heap: mm dump and panic only valid for the heap own by OS 2023-08-02 06:11:59 -07:00
allsyms.h libc/symtab: Don't include symtab.h in the header files 2023-07-10 23:03:17 +03:00
arch.h secure: fix compile failed when no CONFIG_ARCH_HAVE_TRUSTZONE 2023-08-05 12:40:34 -07:00
ascii.h
atexit.h libc: Implement quick_exit and at_quick_exit 2023-01-25 14:31:37 +02:00
bits.h nuttx/bits.h: support GENMASK and GENMASK_ULL 2023-07-29 16:41:31 -03:00
board.h assert: add regs parameter to board_crashdump function 2023-06-13 09:42:27 +08:00
cache.h armv7/8 cache: add up_get_xcache_size() support 2023-07-15 15:11:07 +08:00
can.h stm32h7: socket CAN error handling. 2023-01-30 11:22:49 +08:00
cancelpt.h
clock.h sched/clock/clock_getcpuclockid: add clock_getcpuclockid implementation 2023-07-05 00:32:11 +08:00
compiler.h win/MSVC: add packed_struct macro implement 2023-07-14 01:18:09 +08:00
crc8.h
crc16.h arm64/a64: Add driver for MIPI DSI 2022-12-14 22:37:32 +08:00
crc32.h
crc64.h
elf.h binfmt: Always include arch/elf.h in include/nuttx/elf.h 2023-06-25 19:02:53 -03:00
environ.h
envpath.h
fdcheck.h libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
fdt.h fdt: Add initial FDT support and procfs for userspace export 2023-08-05 12:41:06 -07:00
gdbstub.h libs/libc:Support gdb rsp protocol 2023-07-15 01:57:11 +08:00
hashtable.h hashtable.h: Added a hashtable implementation 2022-12-22 20:20:12 +08:00
init.h support stm32f429i-disco run open flash loader 2023-08-05 12:40:02 -07:00
ipcc.h
irq.h Indent the include statement by two spaces 2023-05-16 12:34:32 -03:00
kmalloc.h mm: include malloc.h in mm/mm.h 2023-06-11 19:37:04 +03:00
kthread.h
lirc.h
list.h libs/pthread/pthread_atfork: fulfill implement pthread_atfork function 2023-07-26 10:41:52 +02:00
mmcsd.h drivers/mmcsd: Add MMC_IOC_CMD ioctl 2023-01-30 14:09:23 -03:00
module.h
mqueue.h Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
mutex.h misc/mutex: fix assertion if nxmutex_reset() before nxmutex_unlock() 2023-02-04 02:13:15 +08:00
notifier.h sched/misc:add linux-like reboot notifier list 2022-12-29 19:18:42 +08:00
nuttx.h
page.h nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
panic_notifier.h assert: add more information to panic notifier 2023-08-03 03:17:22 -07:00
pgalloc.h
progmem.h
pthread.h sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
queue.h queue: add dq_inqueue & sq_inqueue support 2023-08-03 10:16:41 -07:00
random.h
reboot_notifier.h reboot: Remove SYS_DOWN to avoid the confusion 2023-04-21 20:37:59 +03:00
sched.h fix wait after vfork return error 2023-08-11 09:30:45 -06:00
sched_note.h note: fix sched_note_begin address errr 2023-08-09 15:11:33 +08:00
scsi.h
sdio.h mmcsd/sdio: fix potential race condition in sdio 2023-03-21 14:40:44 -03:00
semaphore.h semaphore: Optimize priority inheritance with only one holder 2023-06-17 08:26:46 +03:00
signal.h include/nuttx: remove semicolon in _SIG_KILL definition 2023-07-07 17:39:39 -03:00
spawn.h sched/spawn: remove spawn proxy thread to simplify task/posix_spawn() 2023-04-27 17:35:58 +08:00
spinlock.h drivers/net/netdev: improve granularity of 'quota' locking 2023-07-01 15:27:09 -03:00
streams.h libc: export lib_sprintf_internal function 2023-07-14 00:22:11 +03:00
symtab.h libc/symtab: Move SYMTAB_XXX from unistd/Kconfig to symtab/Kconfig 2023-07-10 13:09:47 -03:00
tls.h nuttx/tls: Remove the max key limiatation in task_tls_alloc and pthread_key_create 2023-08-05 06:33:49 -07:00
trace.h trace: replace SCHED_NOTE_BEGIN to sched_note_begin 2023-04-19 02:53:34 +08:00
userspace.h
vt100.h
wdog.h
wqueue.h signal: Remove configurable assignment of signal numbers 2023-03-26 08:31:36 -06:00
zoneinfo.h