mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] uapi/fcntl: fix the syscall name in the AT_EXECVE_CHECK comment
@ 2026-11-29  1:41 Nikolai Dokutovich
  0 siblings, 0 replies; only message in thread
From: Nikolai Dokutovich @ 2026-11-29  1:41 UTC (permalink / raw)
  To: Kees Cook, Christian Brauner
  Cc: Mickaël Salaün, Jeff Layton, Chuck Lever,
	Alexander Aring, linux-api, linux-fsdevel, linux-kernel,
	Nikolai Dokutovich

The comment calls AT_EXECVE_CHECK a flag for execveat2(2), but no
execveat2(2) system call exists.  The flag belongs to execveat(2): the
commit that added it is titled "exec: Add a new AT_EXECVE_CHECK flag to
execveat(2)" (a5874fde3c08), and fs/exec.c, security/ and samples/ all
name execveat(2).

The header is installed for userspace, so a wrong name sends readers
looking for a system call that is not there.

Signed-off-by: Nikolai Dokutovich <ndokutovich@gmail.com>
---
 include/uapi/linux/fcntl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/fcntl.h b/include/uapi/linux/fcntl.h
index e43e3de3e9ee..faa63d0b60d2 100644
--- a/include/uapi/linux/fcntl.h
+++ b/include/uapi/linux/fcntl.h
@@ -187,7 +187,7 @@ struct delegation {
 #define AT_HANDLE_MNT_ID_UNIQUE	0x001	/* Return the u64 unique mount ID. */
 #define AT_HANDLE_CONNECTABLE	0x002	/* Request a connectable file handle */
 
-/* Flags for execveat2(2). */
+/* Flags for execveat(2). */
 #define AT_EXECVE_CHECK		0x10000	/* Only perform a check if execution
 					   would be allowed. */
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-29  1:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29  1:41 [PATCH] uapi/fcntl: fix the syscall name in the AT_EXECVE_CHECK comment Nikolai Dokutovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®