| 1 |
Template: iproute2/setcaps |
| 2 |
Type: boolean |
| 3 |
Default: false |
| 4 |
_Description: Allow ordinary users to run ip vrf exec using capabilities? |
| 5 |
iproute2 can be used to configure and use Virtual Routing and Forwarding (VRF) |
| 6 |
functionality in the kernel. |
| 7 |
This normally requires root permissions, but sometimes it's useful to allow |
| 8 |
ordinary users to execute commands from inside a virtual routing and forwarding |
| 9 |
domain. E.g. ip vrf exec examplevrf ping 10.0.0.1 |
| 10 |
. |
| 11 |
The ip command supports dropping capabilities, making an exception for ip vrf exec. |
| 12 |
The drawback of setting the permissions is that if in the unlikely case of a |
| 13 |
security critical bug being found before the ip command has dropped capabilities |
| 14 |
then it could be used by an attacker to gain root permissions. |
| 15 |
It's up to you to decide about the trade-offs and select the best setting for your |
| 16 |
system. |
| 17 |
This will give cap_dac_override, cap_net_admin and cap_bpf to /bin/ip. |
| 18 |
. |
| 19 |
More information about VRF can be found at: |
| 20 |
https://www.kernel.org/doc/Documentation/networking/vrf.txt |