]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Seccomp filter on CentOS 8.3 (Bug#47828).
authorPhilipp Stephani <phst@google.com>
Sun, 18 Apr 2021 08:33:41 +0000 (10:33 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 18 Apr 2021 08:34:48 +0000 (10:34 +0200)
* lib-src/seccomp-filter.c (main): mmap: Also allow MAP_SHARED.

lib-src/seccomp-filter.c

index fc3c3a0c074e0156362599c13c08bb8db2f5d722..8f8a990661cb01b1311f2b2ecc17e39e0c2c0b39 100644 (file)
@@ -183,9 +183,9 @@ main (int argc, char **argv)
            some versions of the dynamic loader still use it.  Also
            allow allocating thread stacks.  */
         SCMP_A3_32 (SCMP_CMP_MASKED_EQ,
-                    ~(MAP_PRIVATE | MAP_FILE | MAP_ANONYMOUS
-                      | MAP_FIXED | MAP_DENYWRITE | MAP_STACK
-                      | MAP_NORESERVE),
+                    ~(MAP_SHARED | MAP_PRIVATE | MAP_FILE
+                      | MAP_ANONYMOUS | MAP_FIXED | MAP_DENYWRITE
+                      | MAP_STACK | MAP_NORESERVE),
                     0));
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
         SCMP_A2_32 (SCMP_CMP_MASKED_EQ,