]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: add forgotten munmap() syscall to @file-system (#5291)
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Feb 2017 02:29:33 +0000 (03:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Feb 2017 02:29:33 +0000 (21:29 -0500)
We added mmap() and mmap2(), but forgot munmap(). Fix that.

Pointed out by @lucaswerkmeister:

https://github.com/systemd/systemd/pull/4537#issuecomment-273275298

src/shared/seccomp-util.c

index e35f18471ca1ce4d42ee43fb1229cd249502c216..b6b44e7f56107e41a493d17188a7340d3c4f7598 100644 (file)
@@ -344,6 +344,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "mknodat\0"
                 "mmap2\0"
                 "mmap\0"
+                "munmap\0"
                 "newfstatat\0"
                 "open\0"
                 "openat\0"