From d78b87ba8aa211f2fca14e1a4c96f9e0b1f26922e604bd2f398699e67fb2d2f3 Mon Sep 17 00:00:00 2001 From: Thomas Blume Date: Tue, 8 May 2018 13:55:23 +0000 Subject: [PATCH] align permissions of /etc/machine-id to upstream code (bsc#1092269) OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1029 --- systemd-mini.spec | 2 +- systemd.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd-mini.spec b/systemd-mini.spec index 3c6abe3..87aa79e 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -690,7 +690,7 @@ if [ $1 -eq 1 ]; then fi # check if /etc/machine-id is writeable and change it to readonly -[[ -w %{_sysconfdir}/machine-id ]] && chmod 444 %{_sysconfdir}/machine-id +[ ! -w %{_sysconfdir}/machine-id ] || chmod 444 %{_sysconfdir}/machine-id %if ! 0%{?bootstrap} pam-config --add --systemd || : diff --git a/systemd.spec b/systemd.spec index a8a133d..23af17e 100644 --- a/systemd.spec +++ b/systemd.spec @@ -688,7 +688,7 @@ if [ $1 -eq 1 ]; then fi # check if /etc/machine-id is writeable and change it to readonly -[[ -w %{_sysconfdir}/machine-id ]] && chmod 444 %{_sysconfdir}/machine-id +[ ! -w %{_sysconfdir}/machine-id ] || chmod 444 %{_sysconfdir}/machine-id %if ! 0%{?bootstrap} pam-config --add --systemd || :