Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.24 KB

File metadata and controls

37 lines (28 loc) · 1.24 KB

grant-and-claim-netns-interfaces

Description

A system utility for moving network interfaces between network namespaces. An example of this would be to move a physical interface from the root netns into a netns created by an unprivileged user, which lets the user configure the interface, giving flexibility in immutable or otherwise access-restricted environments.

In this program, the namespaces are named as such,

  • "Claimee" - This is the netns in which the program is started. Namely, the one linked by /proc/self/ns/net.
  • "Grantee" - This netns is the one linked by /proc/$PID/ns/net, in which $PID is discovered by running the executable configured with GranteePIDDiscovery

Prerequisites

Installation

Either download and extract a release, or prepare the cloned repo with autoreconf --install, and follow the release installation guide.

From releases

./configure
make install