f4a6761
From adc6a92ae92647c9b098ffb5ff257c8ab685411e Mon Sep 17 00:00:00 2001
f4a6761
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
f4a6761
Date: Tue, 30 May 2017 16:43:48 -0400
f4a6761
Subject: [PATCH] man: update MemoryDenyWriteExecute description for executable
f4a6761
 stacks
f4a6761
f4a6761
Without going into details, mention that libraries are also covered by the
f4a6761
filters, and that executable stacks are a no no.
f4a6761
f4a6761
Closes #5970.
f4a6761
f4a6761
(cherry picked from commit 03c3c520402db803cffd5abc7ea0c55fba95fbb3)
f4a6761
---
f4a6761
 man/systemd.exec.xml | 4 ++--
f4a6761
 1 file changed, 2 insertions(+), 2 deletions(-)
f4a6761
f4a6761
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
f4a6761
index fb64cd6d8e..9a9387b798 100644
f4a6761
--- a/man/systemd.exec.xml
f4a6761
+++ b/man/systemd.exec.xml
f4a6761
@@ -1655,8 +1655,8 @@
f4a6761
         <citerefentry><refentrytitle>mprotect</refentrytitle><manvolnum>2</manvolnum></citerefentry> system calls with
f4a6761
         <constant>PROT_EXEC</constant> set and
f4a6761
         <citerefentry><refentrytitle>shmat</refentrytitle><manvolnum>2</manvolnum></citerefentry> system calls with
f4a6761
-        <constant>SHM_EXEC</constant> set. Note that this option is incompatible with programs that generate program
f4a6761
-        code dynamically at runtime, such as JIT execution engines, or programs compiled making use of the code
f4a6761
+        <constant>SHM_EXEC</constant> set. Note that this option is incompatible with programs and libraries that
f4a6761
+        generate program code dynamically at runtime, including JIT execution engines, executable stacks, and code
f4a6761
         "trampoline" feature of various C compilers. This option improves service security, as it makes harder for
f4a6761
         software exploits to change running code dynamically. Note that this feature is fully available on x86-64, and
f4a6761
         partially on x86. Specifically, the <function>shmat()</function> protection is not available on x86. Note that