lxc-user-nic(1) | lxc-user-nic(1) |
lxc-user-nic - Manage nics in another network namespace
lxc-user-nic
create {lxcpath} {name} {pid} {type}
{bridge} {container nicname}
lxc-user-nic
delete {lxcpath} {name} {path to network
namespace} {type} {bridge} {container nicname}
lxc-user-nic is a setuid-root program with which unprivileged users may manage network interfaces for use by a lxc container.
It will consult the configuration file /etc/lxc/lxc-usernet to determine the number of interfaces which the calling user is allowed to create, and which bridge he may attach them to. It tracks the number of interfaces each user has created using the file /run/lxc/nics. It ensures that the calling user is privileged over the network namespace to which the interface will be attached. lxc-user-nic also allows one to delete network devices. Currently only ovs ports can be deleted.
Christian Brauner <christian@brauner.io>
Serge Hallyn <serge@hallyn.com>
Daniel Lezcano <daniel.lezcano@free.fr>
2023-02-19 |