remainroot icon indicating copy to clipboard operation
remainroot copied to clipboard

typo? in cred_emulate_setxuid

Open fcicq opened this issue 8 years ago • 1 comments

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);

fcicq avatar Jun 03 '17 06:06 fcicq

Yes, I think I made a mistake here. I'll check the Linux cred code to see where I've messed up.

cyphar avatar Jun 23 '17 12:06 cyphar