2

I have an autoconf project that contains a post-install hook like this:

install-exec-hook:
    setcap cap_net_raw+ep $(bindir)/myexecutable

I use checkinstall to package it up and install it on my local system, however after checkinstall is done, it appears that $(bindir)/myexecutable does not have any capabilities, as getcap /usr/local/bin/myexecuatble gives nothing, whereas I would expect /usr/local/bin/myexecutable = cap_net_raw+ep.

tomix86
  • 1,336
  • 2
  • 18
  • 29
brooks94
  • 3,836
  • 4
  • 30
  • 57
  • I bet if you ran with 'remake -x install` and paste the output, it would be clear what the problem is. If you don't have remake installed see https://bashdb.sf.net/remake – rocky Jun 23 '15 at 02:03
  • Did you make sure `setcap` ran successfully? In particular, did it have sufficient rights to access/manipulate files in `/usr/local/bin`? – Niels Lohmann Jul 21 '15 at 21:17

0 Answers0