Article 4SYA4 Capabilities CAP_NET_ADMIN for using system call

Capabilities CAP_NET_ADMIN for using system call

by
Michael65589
from LinuxQuestions.org on (#4SYA4)
Hello,
I want to use a systemcall (ip link set can0 up) in my c-programm that have no root privileges. Therefor I set the capabilities to CAP_NET_RAW and CAP_NET_ADMIN.
But I always get a permission error message. When I set the capabilities to the ip program it works.
How can I get my program working without touching the capabilities of ip program?

Thankslatest?d=yIl2AUoC8zA latest?i=Mp9JeRBw6Zk:t4fmMcG1w9M:F7zBnMy latest?i=Mp9JeRBw6Zk:t4fmMcG1w9M:V_sGLiP latest?d=qj6IDK7rITs latest?i=Mp9JeRBw6Zk:t4fmMcG1w9M:gIN9vFwMp9JeRBw6Zk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments