• 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
Attached to Project: BDisk
Opened by Anonymous Submitter - 29.12.2017
Last edited by brent s. - 04.01.2018

FS#24 - Run without root

Please make it so bdisk will run without root.

brent s. commented on 29.12.2017 17:22

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.

GI Jack: All American zero commented on 07.01.2018 22:12
would it be possible to use fakeroot?
GI Jack: All American zero commented on 13.01.2018 04:09 I do believe that Arch uses fakeroot for package building as well
brent s. commented on 14.01.2018 08:47

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.


Available keyboard shortcuts


Task Details

Task Editing