Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a libpcap based application. Now, to allow non-root users to use my app, during installation , i use setcap

setcap cap_net_raw=ep /bin/myapp

But, in case the Linux Distro on which i install my app does not support Linux Capabilities, i want to use setuid(). Now, is their any way by which we can figure out whether Linux Capabilities and setuid() are supported for current Linux Distro or not. Besides, is there any link, where all Linux Distros having Linux Capabilities support are displayed.

share|improve this question
I thought capabilities was a thing of Linux(?) – WikiWitz Jan 22 '13 at 13:26
@WikiWitz It is a thing of Linux, but some custom kernels don't come with Linux Capabilities support. – adnan kamili Jan 22 '13 at 13:46
@WikiWitz Some older filesystems don't have a place to store capabilities, too. – grawity Jan 22 '13 at 14:26
Do we have an answer to the actual question, ie : "how to check either linux has a given capability " ? – romain jouin Dec 24 '15 at 14:37

You must log in to answer this question.

Browse other questions tagged .