]> git.ipfire.org Git - thirdparty/lxc.git/commit
seccomp: send process memory fd 2972/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 2 May 2019 15:06:00 +0000 (17:06 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 2 May 2019 15:06:00 +0000 (17:06 +0200)
commit5ed06d3ad6a80a7a8efd10a9c01e90e0e7981306
treeaba550d12221545581ba5a6194cbef5ba24efe7c
parent0b5afd323e47c4a6eb10b8c7402f532e12e1a233
seccomp: send process memory fd

There's an inherent race when reading a process's memory. The easiest way is to
have liblxc get an fd and check that the race was one, send it to the caller
(They are free to ignore it if they don't use recvmsg()).

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/af_unix.c
src/lxc/af_unix.h
src/lxc/seccomp.c