Draft: Rework privilege escalation tool selection and create a run0 systemd subpackage
Changing the privilege escalation tool selection to use a virtual package allows for the possibility of installing without such tool if needed. (e.g. a managed system where you don't need the users to have access to doas)
This MR also splits run0 from systemd so that it isn't automatically installed when using systemd.
Merge request reports
Activity
added systemd label
added 1 commit
- 920c4d3f - main/postmarketos-base: rework privilege escalation tool selection
159 158 amove etc/udev/udev.conf 160 159 } 161 160 161 _privilege_doas() { 162 pkgdesc="Use doas as the privilege escalation tool." 163 depends="doas doas-sudo-shim" I actually had that originally, but found that it caused weird conflicts when attempting to switch to sudo since doas-sudo-shim wouldn't be uninstalled..
Edited by Aster Boese
94 91 } 95 92 96 93 package() { 94 # Privilege escalation tools are provided by a subpackage in this 95 # APKBUILD and won't exist when this is evaluated at the top level. 96 # It's moved into this function to work around it. 97 depends="$depends $pkgname-privilege" postmarketos-base
depends onsudo-virt
, which means that there is no way to create an install without a sudo tool currently. This is solved by addingdoas-sudo-shim
. Theoretically an empty package could be created that providessudo-virt
, but that sounds error-prone.I also didn't make
run0
providesudo-virt
becausedoas
doesn't either. Unless somebody makes arun0-sudo-shim
I don't think that is a good idea.Edited by Aster BoeseI also considered that (and also made that the first implementation), but my biggest worry is that a package providing
sudo-virt
would accidentally get uninstalled in some way and there wouldn't be a way to get another one since you don't have sudo anymore and we lock the root account.Edited by Aster Boese
- Resolved by Aster Boese
- Resolved by Aster Boese
added 12 commits
-
3f32e0d8...eacfb4da - 10 commits from branch
postmarketOS:master
- df86a5dc - extra-repos/systemd/systemd: add run0 subpackage
- f48a9a3a - main/postmarketos-base: rework privilege escalation tool selection
-
3f32e0d8...eacfb4da - 10 commits from branch
added status::mr-stale label
Sorry to bother you @JustSoup321,
but we've detected that this merge request hasn't seen any recent activity. If you need help, want to discuss your approach with developers, or you are all done and this is waiting for review, you can ping
@postmarketOS
. You can also ask on matrix in #devel:postmarketos.org or #postmarketos-devel on OFTC.Thanks for your contribution.