Bug#929802: checkrestart: wrongly report processes using deleted files from sssd cache

2020-09-01 Thread Javier Fernandez-Sanguino
tag 929802 pending
thanks

Dear Baptiste,

On Fri, 31 May 2019 at 14:24, Baptiste BEAUPLAT  wrote:
> I propose to add this directory to the list of ignored path in checkrestart.

Thank you for your report and your patch, I have pushed it to the
debian-goodies GIT repository
(https://salsa.debian.org/debian/debian-goodies/-/blob/master/checkrestart
commit 88ac8cae1ce209076744eed3750a599a08256531).

It will be fixed with the next package upload.

Best regards

Javier Fernández-Sanguino



Bug#929802: checkrestart: wrongly report processes using deleted files from sssd cache

2019-05-31 Thread Baptiste BEAUPLAT
Package: debian-goodies
Tags: patch

Dear maintainers,

The tool checkrestart wrongly report processes using deleted files from
/var/lib/sss/mc/ as in need of a restart.

Files present in that directories are caches from sssd and are expected
to change (removed and re-created) from now and then. glibc
automatically reopen the cache files on the next request (which can take
a while, creating the problem with checkrestart).

I propose to add this directory to the list of ignored path in checkrestart.

Please find attached a patch.

Best regards,

-- 
Baptiste BEAUPLAT - lyknode
--- checkrestart  2018-07-20 17:27:39.0 +
+++ checkrestart2019-05-31 12:07:56.136939223 +
@@ -566,6 +566,9 @@
 # Skip memfd files
 if f.startswith('/memfd:'):
 return 0
+# Skip sssd cache
+if f.startswith('/var/lib/sss/mc/'):
+return 0
 # Skip, if asked to, files that do not belong to any package
 if onlyPackageFiles:
 # Remove some lsof information from the file to ensure that it is


signature.asc
Description: OpenPGP digital signature