4 ms·
Would it have been possible to attach a debugger to accountsservice in this state and execute arbitrary code, including re-gaining root privileges?
by steerablesafe 6y ago
Would it have been possible to attach a debugger to accountsservice in this state and execute arbitrary code, including re-gaining root privileges?
- jwilk 6y agoVery good question. :-) No, you can't use ptrace(2) on a process that has changed its EUID. For details, see PR_SET_DUMPABLE in the prctl(2) man page.
- steerablesafe 6y agoGreat. I expected that possibly the real UID controlled this, it's good that it's not the case.
- YtvwlD 6y agoNo, you can't usually attach a debugger to a process (with Ubuntu's default settings).