app_profile.c
Syscall hooking and credential manipulation
Code mentions syscall hookingLinux struct cred usage
SHA-2568ec3e7ca23ed2e22458d47ea506fda39e84c4605f086a4c4e29829a17ae8cca2
MaleculeO(Er₂)H(Os)
Evidence
15#include "selinux/selinux.h"
16#include "su_mount_ns.h"
17#include "syscall_hook_manager.h"
33 * still gets root — just without custom supplementary groups.
34 */
35void setup_groups(struct root_profile *profile, struct cred *cred)
36{
37 if (profile->groups_count > KSU_MAX_GROUPS) {
74void seccomp_filter_release(struct task_struct *tsk);
123 cred = prepare_creds();
124 if (!cred) {
125 pr_warn("prepare_creds failed!\n");
164 commit_creds(cred);