mirror of
https://github.com/apache/nuttx.git
synced 2026-09-12 21:50:14 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| group.h | ||
| group_childstatus.c | ||
| group_continue.c | ||
| group_create.c | ||
| group_foreachchild.c | ||
| group_free.c | ||
| group_getegid.c | ||
| group_geteuid.c | ||
| group_getgid.c | ||
| group_getuid.c | ||
| group_join.c | ||
| group_killchildren.c | ||
| group_leave.c | ||
| group_malloc.c | ||
| group_realloc.c | ||
| group_setegid.c | ||
| group_seteuid.c | ||
| group_setgid.c | ||
| group_setuid.c | ||
| group_setupidlefiles.c | ||
| group_setuptaskfiles.c | ||
| group_signal.c | ||
| group_suspendchildren.c | ||
| group_waiter.c | ||
| group_zalloc.c | ||
| Make.defs | ||