]> git.proxmox.com Git - mirror_lxc.git/commit
seccomp: recvmsg with MSG_TRUNC
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 8 Jul 2019 16:00:20 +0000 (18:00 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 9 Jul 2019 10:25:10 +0000 (12:25 +0200)
commit87e547d9c790ccb5c6d8d59da96c9f3082c0e867
treeb1acfdab5d6ebf189931c43605af10337a81039c
parent214008eeb22f53c8d6c75853d240fc635fdb9fbc
seccomp: recvmsg with MSG_TRUNC

We only read the message without the cookie. For now assert
that the sender also didn't try to send more by letting
`recvmsg()` return the original size of the packet if it was
longer.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/seccomp.c