Re: [PATCH ovpn net-next v4 1/3] ovpn: support operations on interfaces in foreign netns

Sabrina Dubroca <[email protected]>
Newsgroups gmane.network.openvpn.devel
Message-ID <an78lfnWKHNx0mUc@krikkit>
2026-08-06, 17:49:46 +0200, Marco Baffo wrote:
> ovpn currently looks up the target interface in the network namespace
> associated with the netlink socket. This prevents a userspace process
> from controlling an ovpn interface located in another namespace.
> 
> Add the optional OVPN_A_TARGET_NETNSID attribute. When present, it
> identifies the namespace containing the target interface relative to the
> namespace of the requesting Netlink socket. Resolve the ID and perform
> the interface lookup there. When absent, preserve the existing lookup
> behavior.

I'm not so sure about this. Why not open a socket in the target netns
directly?

Also, all this cross-net stuff is a pain wrt permissions.

-- 
Sabrina
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.