On Thu, Aug 02, 2018 at 01:16:04PM +0200, Christian Ehrhardt wrote:
> I was wondering if there is a common pattern to resolve this that might
> just be unknown to me yet and that I could use in packaging.
I have in mind to write a wrapper that checks if "newgrp" or "sg" would
succeed and exec itself via that if so. I'm not aware of this being an
existing pattern though.
If we wanted to make it a standard thing, we could provide such a
wrapper in a package and then packages that wanted to use it could
register with (and symlink to) the wrapper.