Wireshark-bugs: [Wireshark-bugs] [Bug 10247] Configure --enable-setcap-install does not set capa
Date: Wed, 02 Jul 2014 20:00:58 +0000

Comment # 4 on bug 10247 from
It worked on my Fedora 16 and Ubuntu 12.04 (virtual) machines when I did `sudo
make install` after configuring with `--enable-setcap-install`, with the
default installation prefix, i.e. /usr/local.

I then configured it, on the Ubuntu machine, to be installed under my home
directory; `make install` *didn't* fail, but it also didn't set the
capabilities.  The installation reported

    /sbin/setcap cap_net_raw,cap_net_admin+ep /home/gharris/bin/dumpcap
    unable to set CAP_SETFCAP effective capability: Operation not permitted
    make[4]: [install-exec-hook] Error 1 (ignored)

Makefile.am precedes the "set the group of dumpcap", "set the capabilities of
dumpcap", and "make set-UID" commands in the install-exec-hook target with "-",
so that errors are ignored.

Unless somebody can come up with a good reason to ignore errors in those
commands, I'd vote for removing the "-"es, so that a failure stops the
installation and thus makes the user more aware of the failure.


You are receiving this mail because:
  • You are watching all bug changes.