remainroot
remainroot copied to clipboard
typo? in cred_emulate_setxuid
never will those code would do cred_drop_cap(new) / cred_raise_cap(new)
if (old->euid == 0 && old->euid != 0)
cred_drop_cap(new);
if (old->euid != 0 && old->euid == 0)
cred_raise_cap(new);
Yes, I think I made a mistake here. I'll check the Linux cred code to see where I've messed up.