Skip to contentSkip to conversation

Are iptables or ipset file capabilities aware?

DISCUSSION Mickey Nordstrom 2 participants 2 messages Dec 16, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to devise a scheme where I need to give an unpriviliged user the ability to add ip addresses to a blocklist used by iptables. Sudo is not an option in this case.

I have understood that I should be able to do this with the CAP_NET_ADMIN capability but so far during my testing with ipset 4.5 I have not been successful.

Could anyone please tell me if these utilities are in fact capabilities aware and if not, if there are any plans to implement it?

Cheers,
/Mikael

#1 lore raw
Quoted 3 lines · Mickey Nordstrom

I have understood that I should be able to do this with the CAP_NET_ADMIN capability but so far during my testing with ipset 4.5 I have not been successful.

Just how is CAP_NET_ADMIN any better than sudo? (The application would have full network control in either case.)