Accepting request 606967 from home:fbui:systemd:Factory
- Slight rewrite of the previous fix - Move 80-container-v[ez].network in systemd-container sub-package OBS-URL: https://build.opensuse.org/request/show/606967 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1030
This commit is contained in:
parent
98c46ce08d
commit
d4cc2ae643
@ -1,9 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 08:57:44 UTC 2018 - fbui@suse.com
|
||||||
|
|
||||||
|
- Slight rewrite of the previous fix
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 8 10:33:10 UTC 2018 - Thomas.Blume@suse.com
|
Tue May 8 10:33:10 UTC 2018 - Thomas.Blume@suse.com
|
||||||
|
|
||||||
- align permissions of /etc/machine-id to upstream code (bsc#1092269)
|
- align permissions of /etc/machine-id to upstream code (bsc#1092269)
|
||||||
world writeable machine-id is a security issue
|
world writeable machine-id is a security issue
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 23 14:05:37 UTC 2018 - fbui@suse.com
|
||||||
|
|
||||||
|
- Move 80-container-v[ez].network in systemd-container sub-package
|
||||||
|
|
||||||
|
- Move 80-container-host0.network from udev to systemd
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 23 07:45:32 UTC 2018 - fbui@suse.com
|
Mon Apr 23 07:45:32 UTC 2018 - fbui@suse.com
|
||||||
|
|
||||||
|
@ -687,10 +687,15 @@ fi
|
|||||||
# machine ID in all images.
|
# machine ID in all images.
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
touch %{_sysconfdir}/machine-id
|
touch %{_sysconfdir}/machine-id
|
||||||
|
chmod 444 %{_sysconfdir}/machine-id
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if /etc/machine-id is writeable and change it to readonly
|
# /etc/machine-id might have been created writeable incorrectly
|
||||||
[ ! -w %{_sysconfdir}/machine-id ] || chmod 444 %{_sysconfdir}/machine-id
|
# (boo#1092269).
|
||||||
|
if [ -w %{_sysconfdir}/machine-id ]; then
|
||||||
|
echo "/etc/machine-id shouldn't be writable, fixing..."
|
||||||
|
chmod 444 %{_sysconfdir}/machine-id || :
|
||||||
|
fi
|
||||||
|
|
||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
pam-config --add --systemd || :
|
pam-config --add --systemd || :
|
||||||
@ -1016,15 +1021,17 @@ fi
|
|||||||
%dir %{_sysconfdir}/sysctl.d
|
%dir %{_sysconfdir}/sysctl.d
|
||||||
%{_sysctldir}/99-sysctl.conf
|
%{_sysctldir}/99-sysctl.conf
|
||||||
|
|
||||||
|
%if %{with networkd}
|
||||||
|
%dir %{_sysconfdir}/systemd/network
|
||||||
|
%{_prefix}/lib/systemd/network/80-container-host0.network
|
||||||
|
%endif
|
||||||
|
|
||||||
%dir %{_sysconfdir}/X11/xinit
|
%dir %{_sysconfdir}/X11/xinit
|
||||||
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
|
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
|
||||||
%dir %{_sysconfdir}/X11/xorg.conf.d
|
%dir %{_sysconfdir}/X11/xorg.conf.d
|
||||||
%dir %{_sysconfdir}/systemd
|
%dir %{_sysconfdir}/systemd
|
||||||
%dir %{_sysconfdir}/systemd/system
|
%dir %{_sysconfdir}/systemd/system
|
||||||
%dir %{_sysconfdir}/systemd/user
|
%dir %{_sysconfdir}/systemd/user
|
||||||
%if %{with networkd}
|
|
||||||
%dir %{_sysconfdir}/systemd/network
|
|
||||||
%endif
|
|
||||||
%dir %{_sysconfdir}/xdg/systemd
|
%dir %{_sysconfdir}/xdg/systemd
|
||||||
%{_sysconfdir}/xdg/systemd/user
|
%{_sysconfdir}/xdg/systemd/user
|
||||||
%{_sysconfdir}/X11/xinit/xinitrc.d/50-systemd-user.sh
|
%{_sysconfdir}/X11/xinit/xinitrc.d/50-systemd-user.sh
|
||||||
@ -1230,10 +1237,7 @@ fi
|
|||||||
%dir %{_unitdir}/sockets.target.wants
|
%dir %{_unitdir}/sockets.target.wants
|
||||||
%{_unitdir}/sockets.target.wants/systemd-udev*.socket
|
%{_unitdir}/sockets.target.wants/systemd-udev*.socket
|
||||||
%dir %{_prefix}/lib/systemd/network
|
%dir %{_prefix}/lib/systemd/network
|
||||||
%{_prefix}/lib/systemd/network/*.link
|
%{_prefix}/lib/systemd/network/99-default.link
|
||||||
%if %{with networkd}
|
|
||||||
%{_prefix}/lib/systemd/network/*.network
|
|
||||||
%endif
|
|
||||||
%{_datadir}/pkgconfig/udev.pc
|
%{_datadir}/pkgconfig/udev.pc
|
||||||
|
|
||||||
%files -n libsystemd0%{?mini}
|
%files -n libsystemd0%{?mini}
|
||||||
@ -1273,6 +1277,10 @@ fi
|
|||||||
%{_bindir}/systemd-nspawn
|
%{_bindir}/systemd-nspawn
|
||||||
%{_unitdir}/systemd-nspawn@.service
|
%{_unitdir}/systemd-nspawn@.service
|
||||||
%{_tmpfilesdir}/systemd-nspawn.conf
|
%{_tmpfilesdir}/systemd-nspawn.conf
|
||||||
|
%if %{with networkd}
|
||||||
|
%{_prefix}/lib/systemd/network/80-container-ve.network
|
||||||
|
%{_prefix}/lib/systemd/network/80-container-vz.network
|
||||||
|
%endif
|
||||||
%if %{with machined}
|
%if %{with machined}
|
||||||
%{_bindir}/machinectl
|
%{_bindir}/machinectl
|
||||||
%{_prefix}/lib/systemd/systemd-machined
|
%{_prefix}/lib/systemd/systemd-machined
|
||||||
|
@ -1,9 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 08:57:44 UTC 2018 - fbui@suse.com
|
||||||
|
|
||||||
|
- Slight rewrite of the previous fix
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 8 10:33:10 UTC 2018 - Thomas.Blume@suse.com
|
Tue May 8 10:33:10 UTC 2018 - Thomas.Blume@suse.com
|
||||||
|
|
||||||
- align permissions of /etc/machine-id to upstream code (bsc#1092269)
|
- align permissions of /etc/machine-id to upstream code (bsc#1092269)
|
||||||
world writeable machine-id is a security issue
|
world writeable machine-id is a security issue
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 23 14:05:37 UTC 2018 - fbui@suse.com
|
||||||
|
|
||||||
|
- Move 80-container-v[ez].network in systemd-container sub-package
|
||||||
|
|
||||||
|
- Move 80-container-host0.network from udev to systemd
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 23 07:45:32 UTC 2018 - fbui@suse.com
|
Mon Apr 23 07:45:32 UTC 2018 - fbui@suse.com
|
||||||
|
|
||||||
|
26
systemd.spec
26
systemd.spec
@ -685,10 +685,15 @@ fi
|
|||||||
# machine ID in all images.
|
# machine ID in all images.
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
touch %{_sysconfdir}/machine-id
|
touch %{_sysconfdir}/machine-id
|
||||||
|
chmod 444 %{_sysconfdir}/machine-id
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if /etc/machine-id is writeable and change it to readonly
|
# /etc/machine-id might have been created writeable incorrectly
|
||||||
[ ! -w %{_sysconfdir}/machine-id ] || chmod 444 %{_sysconfdir}/machine-id
|
# (boo#1092269).
|
||||||
|
if [ -w %{_sysconfdir}/machine-id ]; then
|
||||||
|
echo "/etc/machine-id shouldn't be writable, fixing..."
|
||||||
|
chmod 444 %{_sysconfdir}/machine-id || :
|
||||||
|
fi
|
||||||
|
|
||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
pam-config --add --systemd || :
|
pam-config --add --systemd || :
|
||||||
@ -1014,15 +1019,17 @@ fi
|
|||||||
%dir %{_sysconfdir}/sysctl.d
|
%dir %{_sysconfdir}/sysctl.d
|
||||||
%{_sysctldir}/99-sysctl.conf
|
%{_sysctldir}/99-sysctl.conf
|
||||||
|
|
||||||
|
%if %{with networkd}
|
||||||
|
%dir %{_sysconfdir}/systemd/network
|
||||||
|
%{_prefix}/lib/systemd/network/80-container-host0.network
|
||||||
|
%endif
|
||||||
|
|
||||||
%dir %{_sysconfdir}/X11/xinit
|
%dir %{_sysconfdir}/X11/xinit
|
||||||
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
|
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
|
||||||
%dir %{_sysconfdir}/X11/xorg.conf.d
|
%dir %{_sysconfdir}/X11/xorg.conf.d
|
||||||
%dir %{_sysconfdir}/systemd
|
%dir %{_sysconfdir}/systemd
|
||||||
%dir %{_sysconfdir}/systemd/system
|
%dir %{_sysconfdir}/systemd/system
|
||||||
%dir %{_sysconfdir}/systemd/user
|
%dir %{_sysconfdir}/systemd/user
|
||||||
%if %{with networkd}
|
|
||||||
%dir %{_sysconfdir}/systemd/network
|
|
||||||
%endif
|
|
||||||
%dir %{_sysconfdir}/xdg/systemd
|
%dir %{_sysconfdir}/xdg/systemd
|
||||||
%{_sysconfdir}/xdg/systemd/user
|
%{_sysconfdir}/xdg/systemd/user
|
||||||
%{_sysconfdir}/X11/xinit/xinitrc.d/50-systemd-user.sh
|
%{_sysconfdir}/X11/xinit/xinitrc.d/50-systemd-user.sh
|
||||||
@ -1228,10 +1235,7 @@ fi
|
|||||||
%dir %{_unitdir}/sockets.target.wants
|
%dir %{_unitdir}/sockets.target.wants
|
||||||
%{_unitdir}/sockets.target.wants/systemd-udev*.socket
|
%{_unitdir}/sockets.target.wants/systemd-udev*.socket
|
||||||
%dir %{_prefix}/lib/systemd/network
|
%dir %{_prefix}/lib/systemd/network
|
||||||
%{_prefix}/lib/systemd/network/*.link
|
%{_prefix}/lib/systemd/network/99-default.link
|
||||||
%if %{with networkd}
|
|
||||||
%{_prefix}/lib/systemd/network/*.network
|
|
||||||
%endif
|
|
||||||
%{_datadir}/pkgconfig/udev.pc
|
%{_datadir}/pkgconfig/udev.pc
|
||||||
|
|
||||||
%files -n libsystemd0%{?mini}
|
%files -n libsystemd0%{?mini}
|
||||||
@ -1271,6 +1275,10 @@ fi
|
|||||||
%{_bindir}/systemd-nspawn
|
%{_bindir}/systemd-nspawn
|
||||||
%{_unitdir}/systemd-nspawn@.service
|
%{_unitdir}/systemd-nspawn@.service
|
||||||
%{_tmpfilesdir}/systemd-nspawn.conf
|
%{_tmpfilesdir}/systemd-nspawn.conf
|
||||||
|
%if %{with networkd}
|
||||||
|
%{_prefix}/lib/systemd/network/80-container-ve.network
|
||||||
|
%{_prefix}/lib/systemd/network/80-container-vz.network
|
||||||
|
%endif
|
||||||
%if %{with machined}
|
%if %{with machined}
|
||||||
%{_bindir}/machinectl
|
%{_bindir}/machinectl
|
||||||
%{_prefix}/lib/systemd/systemd-machined
|
%{_prefix}/lib/systemd/systemd-machined
|
||||||
|
Loading…
Reference in New Issue
Block a user