seccomp / libseccomp

The main libseccomp repository
GNU Lesser General Public License v2.1
791 stars 170 forks source link

BUG: fix detection of WAIT_KILLABLE_RECV flag #419

Closed alip closed 4 months ago

alip commented 10 months ago

The kernel returns EINVAL when this flag is passed to seccomp without the new listener flag so we should pass this flag along as well.

Reference on where the check happens in the kernel: https://github.com/torvalds/linux/blob/aea6bf908d730b01bd264a8821159db9463c111c/kernel/seccomp.c#L1926-L1932

drakenclimber commented 4 months ago

Pushed to main in commit 9da5d174e3ef. Thanks, @alip