Re: [systemd-devel] [PATCH] Add detect_userns to detect uid/gid shifts (V2)

2015-01-09 Thread Stéphane Graber
On Fri, Jan 09, 2015 at 11:08:26AM +0100, David Herrmann wrote: > Hi > > On Fri, Jan 9, 2015 at 12:07 AM, Stéphane Graber wrote: > > This adds a new detect_userns function in virt.c which will check > > whether systemd is running in the host user namespace (single map of all > > available uids an

Re: [systemd-devel] [PATCH] Add detect_userns to detect uid/gid shifts (V2)

2015-01-09 Thread David Herrmann
Hi On Fri, Jan 9, 2015 at 12:07 AM, Stéphane Graber wrote: > This adds a new detect_userns function in virt.c which will check > whether systemd is running in the host user namespace (single map of all > available uids and gids) or is using a uid/gid map. > > The check makes sure that uid_map and

[systemd-devel] [PATCH] Add detect_userns to detect uid/gid shifts (V2)

2015-01-08 Thread Stéphane Graber
This adds a new detect_userns function in virt.c which will check whether systemd is running in the host user namespace (single map of all available uids and gids) or is using a uid/gid map. The check makes sure that uid_map and gid_map are both exactly equal to the default host map (assuming 32bi