From 94157136c2408cd1de9e5661fdf80b4bd9e89543 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Fri, 5 Aug 2022 09:32:00 +0000 Subject: [PATCH] clevis: simplify sysusers.d fragment by using default 'nologin' shell This tweaks the existing sysuser.d fragment in order to simplify it. The 'nologin' shell is the documented systemd default, so there is no need to explicitly specify it. This change allows better handling of default vs custom shell in the macro logic which bridges between `systemd-sysusers` and `useradd`. --- clevis.spec | 5 ++++- clevis.sysusers | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/clevis.spec b/clevis.spec index b62b101..a4d26f7 100644 --- a/clevis.spec +++ b/clevis.spec @@ -1,6 +1,6 @@ Name: clevis Version: 18 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Automated decryption framework License: GPLv3+ @@ -192,6 +192,9 @@ exit 0 systemctl preset %{name}-luks-askpass.path >/dev/null 2>&1 || : %changelog +* Fri Aug 05 2022 Luca BRUNO - 18-10 +- Simplify sysusers.d fragment by using default 'nologin' shell + * Wed Jul 20 2022 Fedora Release Engineering - 18-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/clevis.sysusers b/clevis.sysusers index 492bdeb..daad762 100644 --- a/clevis.sysusers +++ b/clevis.sysusers @@ -1 +1 @@ -u clevis - "Clevis Decryption Framework unprivileged user" /var/cache/clevis /usr/sbin/nologin +u clevis - "Clevis Decryption Framework unprivileged user" /var/cache/clevis -