- Status Researching
- Percent Complete
- Task Type Feature Request
- Category Core
- Assigned To No-one
- Operating System All
- Severity Medium
- Priority Very Low
- Reported Version 1.0
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#24 - Run without root
Please make it so bdisk will run without root.
i'd absolutely love to be able to do this, it's definitely on my radar. however, BDisk uses chroots, which require root.
i'm trying to see if there's a way i can shoehorn cgroups into this or something, but i'm still a bit unclear on it.
it seems that pychroot may allow me to do this, but it doesn't seem to allow for bindmounting some parts that are required for e.g. pacman to work correctly inside the chroot.
in other words, "on the TODO longterm and definite wishlist item, but there's some things holding it back". in the meanwhile, i've gotten around the (obvious) security risk by doing my builds in a VM. not ideal, i know, but it is usable for a temporary measure until i can see if this is even possible. before the introduction of cgroups, it'd be an absolute impossibility.
would it be possible to use fakeroot?
https://wiki.archlinux.org/index.php/change_root#Without_root_privileges
I do believe that Arch uses fakeroot for package building as well
yeah, pychroot i believe actually supports this as well, but it doesn't let us do bind mounts and the like that pacman needs (well, needed at the time of me last testing it).
i'll have to see if i can find a pythonic implementation of fakechroot.