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:
parent
0e4cc6d31b
commit
98c46ce08d
@ -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