The Ultimate Aim of Kernel Exploitation - Process Credentials
Overview
The cred struct
struct cred {
/* ... */
kuid_t uid; /* real UID of the task */
kgid_t gid; /* real GID of the task */
kuid_t suid; /* saved UID of the task */
kgid_t sgid; /* saved GID of the task */
kuid_t euid; /* effective UID of the task */
kgid_t egid; /* effective GID of the task */
kuid_t fsuid; /* UID for VFS ops */
kgid_t fsgid; /* GID for VFS ops */
/* ... */
} __randomize_layout;task_struct
prepare_kernel_cred() and commit_creds()
prepare_kernel_cred()
commit_creds()
Resources and References
Last updated
Was this helpful?