lxccontainer.h: document seccomp_notify_fd()

parent a804c19b
...@@ -46,6 +46,8 @@ the kernel will generate a poll event and send a message over the file descripto ...@@ -46,6 +46,8 @@ the kernel will generate a poll event and send a message over the file descripto
The caller can read this message, inspect the syscalls including its arguments. Based on this information the caller is expected to send back a message informing the kernel which action to take. Until that message is sent the kernel will block the calling process. The format of the messages to read and sent is documented in seccomp itself. The caller can read this message, inspect the syscalls including its arguments. Based on this information the caller is expected to send back a message informing the kernel which action to take. Until that message is sent the kernel will block the calling process. The format of the messages to read and sent is documented in seccomp itself.
A new API function `seccomp_notify_fd()` has been added which allows callers to retrieve the notifier fd for the container's seccomp filter.
## network\_veth\_routes ## network\_veth\_routes
This introduces the `lxc.net.[i].veth.ipv4.route` and `lxc.net.[i].veth.ipv6.route` properties This introduces the `lxc.net.[i].veth.ipv4.route` and `lxc.net.[i].veth.ipv6.route` properties
......
...@@ -848,6 +848,13 @@ struct lxc_container { ...@@ -848,6 +848,13 @@ struct lxc_container {
int (*umount)(struct lxc_container *c, const char *target, int (*umount)(struct lxc_container *c, const char *target,
unsigned long mountflags, struct lxc_mount *mnt); unsigned long mountflags, struct lxc_mount *mnt);
/*!
* \brief Retrieve a file descriptor for the container's seccomp filter.
*
* \param c Container
*
* \return file descriptor for container's seccomp filter
*/
int (*seccomp_notify_fd)(struct lxc_container *c); int (*seccomp_notify_fd)(struct lxc_container *c);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment