xbps-src: forbid use with root.

There's no reason to use xbps-src as root, and looks like
there's a lot of reports of this abuse.

Unless XBPS_ALLOW_CHROOT_BREAKOUT is set (travis),
using xbps-src as root now returns an error.
This commit is contained in:
Juan RP 2020-02-06 08:33:03 +01:00
parent a4b57776c4
commit b1ecdb8bd0
2 changed files with 12 additions and 3 deletions

View file

@ -33,10 +33,12 @@ multiple utilities to accomplish this task:
- `xbps-uchroot(1)` - XBPS utility that uses `namespaces` and must be `setgid` (part of xbps).
- `proot(1)` - utility that implements chroot/bind mounts in user space, see https://proot-me.github.io/.
> NOTE: you don't need to be `root` to use `xbps-src`, use your preferred chroot style as explained
below.
> NOTE: `xbps-src` does not allow building as root anymore. Use one of the chroot
methods shown above.
#### xbps-uunshare(1)
### chroot methods
#### xbps-uunshare(1) (default)
This utility requires these Linux kernel options: