SHA256
1
0
forked from pool/systemd

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
This commit is contained in:
Thomas Blume 2018-05-08 13:55:23 +00:00 committed by Git OBS Bridge
parent 0e4cc6d31b
commit 98c46ce08d
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 || :