Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fake_id0: Make sudo work under PRoot.
The program sudo changes its effective uid before checking that the owner of /etc/sudoers is root. As a consequence, the faked owner of this file -- and of all other files owned by the real user -- is the new effective uid. Sadly, this makes sudo aborts because the owner of /etc/sudoers is not root. A workaround is to use the save uid as the faked owner of all files owned by the real user. This was tested with "makepkg -i" on a Archi Linux guest rootfs. Ref.: fsquillace/junest#59
- Loading branch information