]> git.proxmox.com Git - mirror_lxc.git/commit
fixup i/o handler return values
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 27 Mar 2020 13:15:12 +0000 (14:15 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 27 Mar 2020 14:45:11 +0000 (15:45 +0100)
commitf7a97743a37a0e577deffbb85c5e2d78f2e421f9
tree5852c2909d2f3f399a880e4b3cb9dde8c1da711e
parentba7ca43b0be417275db7865336191681d915e97c
fixup i/o handler return values

Particularly important for lxc_cmd_handler() handles client
input and should not be capable of canceling the main loop,
some syscall return values leaked through overlapping with
LXC_MAINLOOP_ERROR, causing unauthorized clients connecting
to the command socket to shutdown the main loop.

In turn, signal_handler() receiving unexpected
`signalfd_siginfo` struct sizes seems like a reason to bail
(since it's a kernel interface).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c
src/lxc/seccomp.c
src/lxc/start.c