man/man7/ip.7 Document capabilities to use IP_TRANSPARENT
PATCH 1/1 man/man7/ip.7 Document capabilities to use IP_TRANSPARENT
CAP_NET_ADMIN has been overkill to use setsockopt(IP_TRANSPARENT) since a discussion on LKML[1] and a patch[2] in 2011. All that is left to do is to let devs know they don't need CAP_NET_ADMIN.
[1] <https://lore.kernel.org/netdev/[email protected]/T/>
[2] linux.git 6cc7a765c2987f03ba278dac03c7cc759ee198e7
("IP_TRANSPARENT requires CAP_NET_ADMIN - why?")
--- man/man7/ip.7 | 2 ++ 1 file changed, 2 insertions(+)
man/man7/ip.7 +2 -0
@@ -1088,6 +1088,8 @@ socket option). Enabling this socket option requires superuser privileges (the .B CAP_NET_ADMIN +or +.B CAP_NET_RAW capability). .IP TProxy redirection with the iptables TPROXY target also requires that
base-commit: 64199c5bf76806f13a78b9fd5792ccfcb28a5551
Signature · 1 line
2.39.5
Hi Matthieu,
Quoted 9 lines · Matthieu Buffet
CAP_NET_ADMINhas been overkill to usesetsockopt(IP_TRANSPARENT)since a discussion on LKML[1] and a patch[2] in 2011. All that is left to do is to let devs know they don't needCAP_NET_ADMIN.[1] <https://lore.kernel.org/netdev/[email protected]/T/>
[2] linux.git6cc7a765c2987f03ba278dac03c7cc759ee198e7
("IP_TRANSPARENTrequiresCAP_NET_ADMIN- why?")Signed-off-by Matthieu Buffet <[email protected]>
I've applied the patch. Thanks!
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=0c1e05eb27abb5e8ed2aafca1af064e13867165a>
Have a lovely night!
Alex
Quoted 22 lines
--- man/man7/ip.7 | 2 ++ 1 file changed, 2 insertions(+)man/man7/ip.7 +2
-0@@ -1088,6 +1088,8 @@ socket option). Enabling this socket option requires superuser privileges (the .B CAP_NET_ADMIN +or +.B CAP_NET_RAW capability). .IP TProxy redirection with the iptables TPROXY target also requires thatbase-commit:
64199c5bf76806f13a78b9fd5792ccfcb28a5551Signature · 1 line
2.39.5
Signature · 1 line
<https://www.alejandro-colomar.es/>