Bug 2095396 - [RFE] dhcp use systemd-sysusers
Summary: [RFE] dhcp use systemd-sysusers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dhcp
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Martin Osvald 🛹
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On: 2138822
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-09 16:57 UTC by Pat Riehecky
Modified: 2023-05-09 10:27 UTC (History)
3 users (show)

Fixed In Version: dhcp-4.4.2-18.b1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 08:19:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-124843 0 None None None 2022-06-09 17:13:25 UTC
Red Hat Product Errata RHSA-2023:2502 0 None None None 2023-05-09 08:19:31 UTC

Description Pat Riehecky 2022-06-09 16:57:51 UTC
Description of problem:
dhcp is using static useradd scripts

Version-Release number of selected component (if applicable):
dhcp-4.4.2-17.b1.el9

How reproducible:
100%

Steps to Reproduce:
1. review %pre
2.
3.

Actual results:
%pre server
# /usr/share/doc/setup/uidgid
%global gid_uid 177
getent group dhcpd >/dev/null || groupadd --force --gid %{gid_uid} --system dhcpd
if ! getent passwd dhcpd >/dev/null ; then
    if ! getent passwd %{gid_uid} >/dev/null ; then
      useradd --system --uid %{gid_uid} --gid dhcpd --home / --shell /sbin/nologin --comment "DHCP server" dhcpd
    else
      useradd --system --gid dhcpd --home / --shell /sbin/nologin --comment "DHCP server" dhcpd
    fi
fi
exit 0


Expected results:
use of system-sysusers 

Additional info:
https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format

Comment 9 errata-xmlrpc 2023-05-09 08:19:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: dhcp security and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2502


Note You need to log in before you can comment on or make changes to this bug.