Linux Device Management: Making the Kernel and Udev Namespace Aware

11:00 bis 11:50 in Raum V2

Christian Brauner

On non-embedded systems device management in Linux is a task split between kernelspace and userspace. Since the implementation of the devtmpfs pseudo filesystem the kernel is solely responsible for creating device nodes while udev in userspace is mainly responsible for consistent device naming and permissions. The devtmpfs filesystem however is not namespace aware. As such devices always belong to the initial user namespace. In times of SR-IOV enabled devices it is possible and needed to hand off devices to non-initial user namespaces. The last couple of months I’ve been working on making device management in the Kernel namespace aware. With recent patchsets of mine we have now reached that goal. As such userspace can now tie devices to a specific user namespace. This talk aims to do a couple of things. First, to give a more in-depth explanation of device management in Linux. Second, to explain the concept of namespace aware device management. Third, to explain the patchsets that were needed to make device management namespace aware. And last, to argue for a proper in-kernel solution by namespacing devtmpfs itself in the future.

Vorwissen

I’ll explain anything that’s missing even if it means we can’t get through everything. I can’t fit all links that are helpful down below so I’ll add a couple of them here:

Über mich

Christian Brauner is a core developer and maintainer of the LXD, LXC, and glibc projects. He works upstream for Canonical as part of the Ubuntu Server team on the Linux Kernel and lower-level problems. He’s been active in the open source community for a long time and is a frequent speaker at various large Linux events; he is also strongly committed to working in the open, and a strong proponent of Free Software.