[PATCH] man/man2/memfd_secret.2: Correct the flags
From: Zhengyi Fu <hidden>
Date: 2025-06-12 06:18:09
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Zhengyi Fu <hidden>
Date: 2025-06-12 06:18:09
Subsystem:
the rest · Maintainer:
Linus Torvalds
memfd_secret returns EINVAL when called with FD_CLOEXEC. The correct flag should be O_CLOEXEC. Signed-off-by: Zhengyi Fu <redacted> --- man/man2/memfd_secret.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man/man2/memfd_secret.2 b/man/man2/memfd_secret.2
index 5ba7813c1..c6abd2f5f 100644
--- a/man/man2/memfd_secret.2
+++ b/man/man2/memfd_secret.2@@ -51,7 +51,7 @@ The following values may be bitwise ORed in to control the behavior of .BR memfd_secret (): .TP -.B FD_CLOEXEC +.B O_CLOEXEC Set the close-on-exec flag on the new file descriptor, which causes the region to be removed from the process on .BR execve (2).