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:
parent
fdbc71d92c
commit
d78b87ba8a
@ -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 || :
|
||||
|
@ -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 || :
|
||||
|
Loading…
Reference in New Issue
Block a user