From 98c46ce08da7cf2ad76c2e5769d275431a4ded17e41dc3b7e78652d3892f356b Mon Sep 17 00:00:00 2001 From: Thomas Blume Date: Tue, 8 May 2018 13:55:23 +0000 Subject: [PATCH] Accepting request 605344 from home:tsaupe:branches:Base:System align permissions of /etc/machine-id to upstream code (bsc#1092269) OBS-URL: https://build.opensuse.org/request/show/605344 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 3c6abe35..87aa79ec 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 a8a133d2..23af17e2 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 || :