]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
privsep: allow __NR_mmap2 syscall (#253)
authorOleg Lyovin <olegartys@gmail.com>
Thu, 12 Oct 2023 16:47:05 +0000 (19:47 +0300)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 16:47:05 +0000 (17:47 +0100)
commit6ada94b8561f3e96fdd84d445a2dcbed7c8c9a5f
treedf46475a5cc8841bef534c7c72682879cb722efd
parentb976d55ebd298379bc030c55773dbd6516d22924
privsep: allow __NR_mmap2 syscall (#253)

The issue occured while compiled by musl toolchain:

    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = ?
    +++ killed by SIGSYS +++

This patchs allows seccomp to make __NR_mmap2 syscall.

Signed-off-by: Oleg Lyovin <ovlevin@sberdevices.ru>
src/privsep-linux.c