Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.