[gentoo-dev] [PATCH] user.eclass: die if hard coded UID or GID is already in use

2019-05-27 Thread William Hubbs
If a package hard codes the UID or GID when adding a user or group to the system and that UID/GID already exists, we should abort rather than changing the UID/GID. --- eclass/user.eclass | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/user.eclass b/eclass/user.ecla

Re: [gentoo-dev] [PATCH] user.eclass: die if hard coded UID or GID is already in use

2019-05-27 Thread Mike Gilbert
On Mon, May 27, 2019 at 11:45 AM William Hubbs wrote: > > If a package hard codes the UID or GID when adding a user or group to > the system and that UID/GID already exists, we should abort rather than > changing the UID/GID. These functions have behaved this way for a long time. What problem ar

Re: [gentoo-dev] [PATCH] user.eclass: die if hard coded UID or GID is already in use

2019-05-27 Thread Michał Górny
On Mon, 2019-05-27 at 10:45 -0500, William Hubbs wrote: > If a package hard codes the UID or GID when adding a user or group to > the system and that UID/GID already exists, we should abort rather than > changing the UID/GID. I think the major usage of this argument is not to enforce a specific UI

Re: [gentoo-dev] [PATCH] user.eclass: die if hard coded UID or GID is already in use

2019-05-27 Thread Robin H. Johnson
On Mon, May 27, 2019 at 08:44:09PM -0400, Mike Gilbert wrote: > On Mon, May 27, 2019 at 11:45 AM William Hubbs wrote: > > > > If a package hard codes the UID or GID when adding a user or group to > > the system and that UID/GID already exists, we should abort rather than > > changing the UID/GID.

Re: [gentoo-dev] [PATCH] user.eclass: die if hard coded UID or GID is already in use

2019-05-27 Thread Mike Gilbert
On Tue, May 28, 2019 at 1:41 AM Robin H. Johnson wrote: > > On Mon, May 27, 2019 at 08:44:09PM -0400, Mike Gilbert wrote: > > On Mon, May 27, 2019 at 11:45 AM William Hubbs wrote: > > > > > > If a package hard codes the UID or GID when adding a user or group to > > > the system and that UID/GID a