Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1192044

Bug#1067845: adduser: Reserving uid/gid from the uid/gid pools

From Yair Yarom <irush@cs.huji.ac.il>
Newsgroups linux.debian.bugs.dist
Subject Bug#1067845: adduser: Reserving uid/gid from the uid/gid pools
Date 2024-03-27 16:20 +0100
Message-ID <ImDei-23CL-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: adduser
Version: 3.134
Severity: wishlist
Tags: patch

Dear Maintainer,

The UID_POOL (and GID_POOL) files contains UIDs that should be used for given
name. It would be helpful to reserve the UIDs for the future, so that the order
of adding users to the system won't affect the usability of the UIDs/names.

I.e. if a UID is in the pool, it won't be used unless for the specific name in
the pool.

Attached is a patch that accompilshes this. The RESERVE_UID_POOL and
RESERVE_GID_POOL configurations can be used to enable/disable this feature.

This could also be used to solve bug 248500.

Thanks,
    Yair.


-- System Information:
Debian Release: 12.5
  APT prefers stable-security
  APT policy: (990, 'stable-security'), (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.20-aufs-1 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_IL.UTF-8, LC_CTYPE=en_IL.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages adduser depends on:
ii  passwd  1:4.13+dfsg1-1+b1

adduser recommends no packages.

Versions of packages adduser suggests:
ii  cron                    3.0pl1-162
ii  liblocale-gettext-perl  1.07-5
ii  perl                    5.36.0-7+deb12u1
ii  quota                   4.06-1+b2

-- Configuration Files:
/etc/adduser.conf changed [not included]

-- no debconf information

Back to linux.debian.bugs.dist | Previous | NextNext in thread | Find similar


Thread

Bug#1067845: adduser: Reserving uid/gid from the uid/gid pools Yair Yarom <irush@cs.huji.ac.il> - 2024-03-27 16:20 +0100
  Bug#1067845: adduser: Reserving uid/gid from the uid/gid pools Marc Haber <mh+debian-packages@zugschlus.de> - 2024-03-28 22:10 +0100

csiph-web