nuttx/sched/group
Abhishek Mishra 370d89a012 sched/group: implement POSIX saved-set-UID/GID semantics
Adds tg_suid and tg_sgid fields to task_group_s to complete the
POSIX three-field identity model (real, effective, saved-set).

Updates group_inherit_identity() to propagate the new fields from
parent to child task group on task creation.

Fixes setuid(), setgid(), seteuid(), and setegid() to implement
correct POSIX privilege transition logic:
- Root (euid==0): may set any value; all three IDs updated by setuid/setgid
- Non-root: may only set effective ID to real or saved value; else EPERM

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
2026-06-17 17:13:57 +08:00
..
CMakeLists.txt binfmt: refactor loadable module cleanup mechanism 2026-01-18 08:30:15 -03:00
group.h sched:use tcb inside of pthread_tcb_s, remove all cast 2025-12-22 17:55:45 +08:00
group_childstatus.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
group_continue.c sched: After nxsched_add_readytorun, change first parameter to up_switch_context to this_task() 2025-08-20 10:16:43 +08:00
group_create.c sched/group: implement POSIX saved-set-UID/GID semantics 2026-06-17 17:13:57 +08:00
group_foreachchild.c sched/group_foreachchild.c: fix warning 2026-03-24 10:56:23 -03:00
group_free.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_getegid.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_geteuid.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_getgid.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_getuid.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_join.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
group_killchildren.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
group_leave.c arch, sched/signal: Fix compilation with ENABLE_PARTIAL_SIGNALS=y 2026-06-17 17:11:26 +08:00
group_malloc.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_realloc.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_setegid.c sched/group: implement POSIX saved-set-UID/GID semantics 2026-06-17 17:13:57 +08:00
group_seteuid.c sched/group: implement POSIX saved-set-UID/GID semantics 2026-06-17 17:13:57 +08:00
group_setgid.c sched/group: implement POSIX saved-set-UID/GID semantics 2026-06-17 17:13:57 +08:00
group_setuid.c sched/group: implement POSIX saved-set-UID/GID semantics 2026-06-17 17:13:57 +08:00
group_setupidlefiles.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
group_setuptaskfiles.c sched:use tcb_s inside of task_tcb_s , remove all cast 2025-12-22 17:55:45 +08:00
group_signal.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
group_suspendchildren.c sched/group: There is no need to use sched_[un]lock 2024-10-09 13:46:33 +08:00
group_waiter.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group_zalloc.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
Make.defs binfmt: refactor loadable module cleanup mechanism 2026-01-18 08:30:15 -03:00