request: really simple UNPRIVILEGED support
I'd find it very useful if pkg_comp, still using sandboxctl and requiring root to run, could be configured to create an unprivileged user inside the sandbox and do an --unprivileged build as that user.
I'd use this in a VM configured to match the OS of a hosting provider where I have shell access but can't compile much of anything (thanks to process limits). I'd build binary packages in the VM, taking care that the sandbox $HOME matches my hosting provider $HOME, and then upload and install them.
Haven't thought much about this, but what settings would you need for this to work properly in your environment? I can imagine having to tell pkg_comp at least these:
- User details: name, UID, primary GID, maybe supplementary GIDs, home directory.
- Group details: name, GID (optional; just in case the user has to belong to a special group).
- Whether to use
--unprivilegedor not.
Anything else?
That sounds right in general. For my particular case, I suspect I could get by with as little as username, home dir, and --unprivileged.