Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package containerd for openSUSE:Factory checked in at 2021-10-20 20:23:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/containerd (Old) and /work/SRC/openSUSE:Factory/.containerd.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "containerd" Wed Oct 20 20:23:49 2021 rev:45 rq:926019 version:1.4.11 Changes: -------- --- /work/SRC/openSUSE:Factory/containerd/containerd.changes 2021-10-11 15:30:19.670720935 +0200 +++ /work/SRC/openSUSE:Factory/.containerd.new.1890/containerd.changes 2021-10-20 20:24:38.737391457 +0200 @@ -7,0 +8,11 @@ +Wed Oct 6 02:54:49 UTC 2021 - Aleksa Sarai <asa...@suse.com> + +- Update to containerd v1.4.11, to fix CVE-2021-41103 bsc#1191121. bsc#1191355 +- Switch to Go 1.16.x compiler, in line with upstream. + +------------------------------------------------------------------- +Fri Oct 1 06:59:50 UTC 2021 - Dan ??erm??k <dcer...@suse.com> + +- Install systemd service file as well (fixes bsc#1190826) + +------------------------------------------------------------------- New: ---- containerd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ containerd.spec ++++++ --- /var/tmp/diff_new_pack.pckUW7/_old 2021-10-20 20:24:39.253391776 +0200 +++ /var/tmp/diff_new_pack.pckUW7/_new 2021-10-20 20:24:39.253391776 +0200 @@ -35,6 +35,7 @@ URL: https://containerd.tools Source: %{name}-%{version}_%{git_short}.tar.xz Source1: %{name}-rpmlintrc +Source2: %{name}.service BuildRequires: fdupes BuildRequires: glibc-devel-static BuildRequires: go-go-md2man @@ -121,6 +122,9 @@ install -d -m755 %{buildroot}/%{_sysconfdir}/%{name} echo "# See containerd-config.toml(5) for documentation." >%{buildroot}/%{_sysconfdir}/%{name}/config.toml +# Install system service +install -Dp -m644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service + # Man pages. # TODO: Fix man page generation. #for file in man/* @@ -132,6 +136,18 @@ %fdupes %{buildroot} +%pre +%service_add_pre %{name}.service + +%post +%service_add_post %{name}.service + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service + %files %defattr(-,root,root) %doc README.md @@ -140,6 +156,7 @@ %config %{_sysconfdir}/%{name}/config.toml %{_sbindir}/containerd %{_sbindir}/containerd-shim* +%{_unitdir}/%{name}.service # TODO: Fix man page generation. #%{_mandir}/man*/%{name}* #%exclude %{_mandir}/man1/*ctr.1* ++++++ containerd.service ++++++ # Copyright The containerd Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Modifications by SUSE LLC under the same license [Unit] Description=containerd container runtime Documentation=https://containerd.io After=network.target local-fs.target Conflicts=docker.service [Service] ExecStartPre=-/sbin/modprobe overlay ExecStart=/usr/sbin/containerd Type=notify Delegate=yes KillMode=process Restart=always RestartSec=5 # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNPROC=infinity LimitCORE=infinity LimitNOFILE=1048576 # Comment TasksMax if your systemd version does not supports it. # Only systemd 226 and above support this version. TasksMax=infinity OOMScoreAdjust=-999 [Install] WantedBy=multi-user.target