-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the final solution for chrooted services? (haproxy this time) #152
Comments
I've been running into this (or a very similar problem), but with Firefox and Chrom(e|ium)
The obvious solution would be to just resolve that symlink: index 9c6578e..028066e 100755
--- a/needrestart
+++ b/needrestart
@@ -506,7 +506,7 @@ if(defined($opt_l)) {
unless($nrconf{skip_mapfiles} == 1) {
$maddr =~ s/^0+([^-])/$1/;
$maddr =~ s/-0+(.)/-$1/;
- my @paths = ("/proc/$pid/map_files/$maddr", "/proc/$pid/root/$path");
+ my @paths = ("/proc/$pid/map_files/$maddr", "/proc/$pid/root/$path", readlink("/proc/$pid/map_files/$maddr"));
my ($testp) = grep { -e $_; } @paths;
unless($testp) {
unless($path =~ m@^(/var)?/tmp/@ || Which does seem to fix the problem on my end:
But I'm not sure if this is correct or if it'll break anything else. |
@djl 's solution is working if the chroot was started from the root namespace. Today's Linux systems allows more sophisticated setups... imagine nested containers (namespaces) running a chroot inside. It is not possible for needrestart to find the binary reliable. While running on a linux kernel this is not a major problem since the The default configuration has been changed to ignore non-existing files. |
There was a discussion about postfix #130
Now there is a haproxy:
I'm running needrestart on ubuntu 18.04, so it's a bit dated v3.1.
Was it fixed in a later version, or is a genuine bug? (my apologise if the former)
The text was updated successfully, but these errors were encountered: