Version in base suite: 3.5-4 Version in overlay suite: 3.5-4+deb11u1 Base version: needrestart_3.5-4+deb11u1 Target version: needrestart_3.5-4+deb11u2 Base file: /srv/ftp-master.debian.org/ftp/pool/main/n/needrestart/needrestart_3.5-4+deb11u1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/n/needrestart/needrestart_3.5-4+deb11u2.dsc changelog | 7 +++++++ patches/09-cgroupv2.diff | 24 ++++++++++++++++++++++++ patches/series | 1 + 3 files changed, 32 insertions(+) diff -Nru needrestart-3.5/debian/changelog needrestart-3.5/debian/changelog --- needrestart-3.5/debian/changelog 2022-05-13 08:50:07.000000000 +0000 +++ needrestart-3.5/debian/changelog 2022-05-18 06:32:47.000000000 +0000 @@ -1,3 +1,10 @@ +needrestart (3.5-4+deb11u2) bullseye; urgency=medium + + * Add upstream patch 09-cgroupv2 to fix broken detection with cgroupv2. + Closes: #1005953 + + -- Patrick Matthäi Wed, 18 May 2022 08:32:47 +0200 + needrestart (3.5-4+deb11u1) bullseye-security; urgency=high * Add patch 08-anchor-interp-re to fix not anchored regular expressions. diff -Nru needrestart-3.5/debian/patches/09-cgroupv2.diff needrestart-3.5/debian/patches/09-cgroupv2.diff --- needrestart-3.5/debian/patches/09-cgroupv2.diff 1970-01-01 00:00:00.000000000 +0000 +++ needrestart-3.5/debian/patches/09-cgroupv2.diff 2022-05-18 06:32:47.000000000 +0000 @@ -0,0 +1,24 @@ +From 29fcd57cd89a962bb94adbf116acd9a61036b6eb Mon Sep 17 00:00:00 2001 +From: Thomas Liske +Date: Mon, 16 May 2022 20:00:17 +0200 +Subject: [PATCH] [Core] Make cgroup detection for services and user sessions + cgroup v2 aware. + +closes #203, closes #213 +--- + needrestart | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/needrestart b/needrestart +index 6bf2e6b..bc690aa 100755 +--- a/needrestart ++++ b/needrestart +@@ -648,7 +648,7 @@ if(defined($opt_l)) { + my ($rc) = map { + chomp; + my ($id, $type, $value) = split(/:/); +- if($type ne q(name=systemd)) { ++ if($id != 0 && $type ne q(name=systemd)) { + (); + } + else { diff -Nru needrestart-3.5/debian/patches/series needrestart-3.5/debian/patches/series --- needrestart-3.5/debian/patches/series 2022-05-13 08:50:07.000000000 +0000 +++ needrestart-3.5/debian/patches/series 2022-05-18 06:32:47.000000000 +0000 @@ -6,3 +6,4 @@ 06-dont-restart-bluetooth.diff 07-runit.diff 08-anchor-interp-re.diff +09-cgroupv2.diff