So either I'm understanding something wrong, or the blacklist feature is not working as it should.

In the following scenario I'm in a vserver, and the problem with vservers is that the 'init' process is weird, i.e. it does not belong to the vserver instance itself and thus is not accessible. So checkrestart should not touch it. So this is what I do:

  # cat /etc/checkinstall.blacklist
  /proc/1/exe
  #
  # /usr/local/bin/checkrestart -b/etc/checkinstall.blacklist
  Traceback (most recent call last):
    File "/usr/local/bin/checkrestart", line 503, in <module>
      main()
    File "/usr/local/bin/checkrestart", line 127, in main
      toRestart = lsofcheck(blacklist = blacklist)
    File "/usr/local/bin/checkrestart", line 246, in lsofcheck
      process = processes.setdefault(data,Process(int(data)))
    File "/usr/local/bin/checkrestart", line 445, in __init__
      self.program = os.readlink('/proc/%d/exe' % self.pid)
  OSError: [Errno 13] Permission denied: '/proc/1/exe'

So there's either something wrong with my understanding of the new -b option or the blacklist feature is not yet perfect?

Btw. I cursorily reviewed the patch only (not within the context of the sourcecode itself) and it looks good to me.

Thanks to you both Javier and Tollef,
*t



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to