]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
api-extensions: add "pidfd" api extension
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 11 Mar 2020 14:13:33 +0000 (15:13 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 11 Mar 2020 14:59:44 +0000 (15:59 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
doc/api-extensions.md

index 9413c7df9a61325fd2eb3772d2514688da57b9f2..75069659500850634f711095576a6c615f587f68 100644 (file)
@@ -124,3 +124,7 @@ a pure unified cgroup layout.
 # init\_pidfd
 
 This adds a new API function `init_pidfd()` which allows to retrieve a pidfd for the container's init process allowing process management interactions such as sending signal to be completely reliable and rac-e free.
+
+# pidfd
+
+When running on kernels that support pidfds LXC will rely on them for most operations. This makes interacting with containers not just more reliable it also makes it significantly safer and eliminates various races inherent to PID-based kernel APIs. LXC will require that the running kernel at least support `pidfd_send_signal()`, `CLONE_PIDFD`, `P_PIDFD`, and pidfd polling support. Any kernel starting with `Linux 5.4` should have full support for pidfds.