emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#34730: closed ([PATCH 0/4] Add (gnu build accounts


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#34730: closed ([PATCH 0/4] Add (gnu build accounts) and use it to create /etc/passwd & co.)
Date: Thu, 07 Mar 2019 19:50:02 +0000

Your message dated Thu, 07 Mar 2019 20:49:29 +0100
with message-id <address@hidden>
and subject line Re: [bug#34730] [PATCH 0/4] Add (gnu build accounts) and use 
it to create /etc/passwd & co.
has caused the debbugs.gnu.org bug report #34730,
regarding [PATCH 0/4] Add (gnu build accounts) and use it to create /etc/passwd 
& co.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
34730: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34730
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH 0/4] Add (gnu build accounts) and use it to create /etc/passwd & co. Date: Mon, 4 Mar 2019 12:12:13 +0100
Hello Guix!

This patch series adds a new module, (gnu build accounts), and
uses it to create /etc/{passwd,group,shadow} upon system activation.

This replaces functionality currently provided by the Shadow
command-line tools (‘useradd’, ‘usermod’, etc.) and libc (‘getspnam’,
‘putpwent’, and all these wonderful APIs.)

It’s more code on our side, but it’s overall much less code involved
to create those databases.  The code makes the UID/GID allocation
strategy and state handling (preserving passwords and UIDs/GIDs, not
reusing currently-used UIDs/GIDs, etc.) much clearer and auditable.
Previously all this was buried in imperative calls to ‘useradd’ & co.,
which in turn have an ID allocation strategy baked deep down into
the Shadow code.

As a side effect the system boots slightly faster and we get PIDs
starting at ~190 instead of ~300 on a bare-bones system.  :-)

Feedback welcome!

Ludo’.

Ludovic Courtès (4):
  system: Add (gnu system accounts).
  activation: Operate on <user-account> and <user-group> records.
  Add (gnu build accounts).
  activation: Build account databases with (gnu build accounts).

 Makefile.am              |   1 +
 gnu/build/accounts.scm   | 561 +++++++++++++++++++++++++++++++++++++++
 gnu/build/activation.scm | 245 +++--------------
 gnu/build/install.scm    |   3 +-
 gnu/local.mk             |   2 +
 gnu/system/accounts.scm  | 109 ++++++++
 gnu/system/shadow.scm    |  92 +++----
 tests/accounts.scm       | 309 +++++++++++++++++++++
 8 files changed, 1061 insertions(+), 261 deletions(-)
 create mode 100644 gnu/build/accounts.scm
 create mode 100644 gnu/system/accounts.scm
 create mode 100644 tests/accounts.scm

-- 
2.21.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#34730] [PATCH 0/4] Add (gnu build accounts) and use it to create /etc/passwd & co. Date: Thu, 07 Mar 2019 20:49:29 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Hello!

Pushed!  I’ve reconfigured and rebooted my system and I confirm I can
still log in.  :-)

  0ae735bcc8 activation: Build account databases with (gnu build accounts).
  ec600e4544 Add (gnu build accounts).
  6061d01512 activation: Operate on <user-account> and <user-group> records.
  f6f67b87c0 system: Add (gnu system accounts).

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]