]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/memfd_secret.2: It is now enabled by default
authorThiébaud Weksteen <tweek@google.com>
Mon, 28 Apr 2025 02:02:52 +0000 (12:02 +1000)
committerAlejandro Colomar <alx@kernel.org>
Thu, 1 May 2025 21:18:53 +0000 (23:18 +0200)
In linux.git b758fe6df50d (2023-06-09; "mm/secretmem: make it on by
default") memfd_secret was updated to be enabled by default.

Signed-off-by: Thiébaud Weksteen <tweek@google.com>
Message-ID: <20250428020252.1569621-1-tweek@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/memfd_secret.2

index 322d67a4115b72f259353dc9d2be8f6b1788d3d0..30853d65bad2e50ceb90e194676abc347131f575 100644 (file)
@@ -136,6 +136,13 @@ or has not been enabled on the kernel command-line with
 Linux.
 .SH HISTORY
 Linux 5.14.
+.P
+Before Linux 6.5,
+.\" commit b758fe6df50daf68fef089d8f3c1cd49fc794ed2
+.BR memfd_secret ()
+was disabled by default and only available
+if the system administrator turned it on using
+"secretmem.enable=y" kernel parameter.
 .SH NOTES
 The
 .BR memfd_secret ()
@@ -182,13 +189,6 @@ or spawn a new privileged user-space process to perform
 secrets exfiltration using
 .BR ptrace (2).
 .P
-The way
-.BR memfd_secret ()
-allocates and locks the memory may impact overall system performance,
-therefore the system call is disabled by default and only available
-if the system administrator turned it on using
-"secretmem.enable=y" kernel parameter.
-.P
 To prevent potential data leaks of memory regions backed by
 .BR memfd_secret ()
 from a hybernation image,