diff options
author | Maciej Żenczykowski <maze@google.com> | 2011-10-21 00:21:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-21 00:21:36 +0200 |
commit | 6cc7a765c2987f03ba278dac03c7cc759ee198e7 (patch) | |
tree | 1afd1f5b4da65279b84aa5b74f9c69e8ad3f3b36 /security | |
parent | net: constify skbuff and Qdisc elements (diff) | |
download | linux-6cc7a765c2987f03ba278dac03c7cc759ee198e7.tar.xz linux-6cc7a765c2987f03ba278dac03c7cc759ee198e7.zip |
net: allow CAP_NET_RAW to set socket options IP{,V6}_TRANSPARENT
Up till now the IP{,V6}_TRANSPARENT socket options (which actually set
the same bit in the socket struct) have required CAP_NET_ADMIN
privileges to set or clear the option.
- we make clearing the bit not require any privileges.
- we allow CAP_NET_ADMIN to set the bit (as before this change)
- we allow CAP_NET_RAW to set this bit, because raw
sockets already pretty much effectively allow you
to emulate socket transparency.
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions