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
This commit is contained in:
Thomas Blume 2018-05-08 13:55:23 +00:00 committed by Git OBS Bridge
parent fdbc71d92c
commit d78b87ba8a
2 changed files with 2 additions and 2 deletions

View File

@ -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 || :

View File

@ -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 || :