Documentation/sched: Add POSIX user identity transition docs

Adds comprehensive documentation for the POSIX three-tier user identity
model (real, effective, saved-set IDs) enabled by CONFIG_SCHED_USER_IDENTITY.

* Updates sched/Kconfig with detailed help text explaining the config.
* Adds user_identity.rst to formally document credential inheritance
  and the privilege transition rules for setuid(), seteuid(), setgid(),
  and setegid().
* Updates tasks_vs_threads.rst to list credentials as a shared task
  group resource.

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
This commit is contained in:
Abhishek Mishra 2026-06-11 19:48:15 +00:00 • committed by Xiang Xiao
parent 14661fdba0
commit d487c46a29
5 changed files with 91 additions and 10 deletions

View file

@ -455,13 +455,13 @@ struct task_group_s
pid_t tg_ppid; /* This is the ID of the parent thread */
uint8_t tg_flags; /* See GROUP_FLAG_* definitions */
/* User identity **********************************************************/
/* User identity (POSIX real, effective, and saved-set IDs) ***************/
#ifdef CONFIG_SCHED_USER_IDENTITY
uid_t tg_uid; /* User identity */
gid_t tg_gid; /* User group identity */
uid_t tg_uid; /* Real user identity */
gid_t tg_gid; /* Real group identity */
uid_t tg_euid; /* Effective user identity */
gid_t tg_egid; /* Effective user group identity */
gid_t tg_egid; /* Effective group identity */
uid_t tg_suid; /* Saved set-user identity */
gid_t tg_sgid; /* Saved set-group identity */
#endif