From 69b9c7c41527aab3a0d017643372dc8614d56d5a Mon Sep 17 00:00:00 2001 From: Martin Osvald Date: Mon, 7 Apr 2025 11:41:43 +0200 Subject: [PATCH] Add clock group for systemd Resolves: RHEL-74548 --- add-clock-group.patch | 22 ++++++++++++++++++++++ setup.spec | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 add-clock-group.patch diff --git a/add-clock-group.patch b/add-clock-group.patch new file mode 100644 index 0000000..b598c26 --- /dev/null +++ b/add-clock-group.patch @@ -0,0 +1,22 @@ +diff --git a/group b/group +index 13a6276..6a25aea 100644 +--- a/group ++++ b/group +@@ -21,4 +21,5 @@ ftp::50: + lock::54: + audio::63: + users::100: ++clock::103: + nobody::65534: +diff --git a/uidgid b/uidgid +index c895738..38b4108 100644 +--- a/uidgid ++++ b/uidgid +@@ -111,6 +111,7 @@ ident 98 98 / /usr/sbin/nologin ident + # Note: 99 used to be the old uid for nobody, now moved to 65534, do not reuse + users - 100 - - setup + ssh_keys - 101 - - openssh ++clock - 103 - - systemd + input - 104 - - systemd + render - 105 - - systemd + sgx - 106 - - systemd diff --git a/setup.spec b/setup.spec index 38d1e1a..ee4f5e3 100644 --- a/setup.spec +++ b/setup.spec @@ -14,12 +14,15 @@ BuildRequires: bash tcsh perl-interpreter systemd-rpm-macros #require system release for saner dependency order Requires: system-release +Patch0: add-clock-group.patch + %description The setup package contains a set of important system configuration and setup files, such as passwd, group, and profile. %prep %setup -q +%autopatch -p1 ./generate-sysusers-fragments.sh ./shadowconvert.sh