liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
426 stars 67 forks source link

Possible false positive when using lxc-attach #283

Closed flisk closed 7 months ago

flisk commented 1 year ago

When I run needrestart on a system with a shell started via lxc-attach, a memfd is detected as an obsolete binary:

[main] #1615012 uses obsolete binary /memfd:lxc-attach
[main] #1615012 is a child of #1614739
[main] #1614739 exe => /usr/bin/bash
[main] #1614739 part of user session: uid=0 sess=260

I'm currently suppressing this like so:

push @{$nrconf{blacklist}}, qr(^/memfd:lxc-attach$);

Should this blacklist entry be part of the default config?

liske commented 7 months ago

Which version of needrestart are you using? All /memfd: mappings are ignored by default in needrestart 3.6+ by 6c87772bdc38091e9efbf4c59217fa502365dcf2.