Skip to contentSkip to conversation

man/man7/ip.7 Document capabilities to use IP_TRANSPARENT

PATCH Applied Matthieu Buffet 2 participants 2 messages Mar 7, 2025 – Mar 9, 2025 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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
index e75aa7ca40a4..00e5274c552a 100644
@@ -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
maintainer Applied
#1 lore raw

Hi Matthieu,

Quoted 9 lines · Matthieu Buffet

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?")

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
index e75aa7ca40a4..00e5274c552a 100644
@@ -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
Signature · 1 line
<https://www.alejandro-colomar.es/>