[PATCH 2/7] docs: landlock: fix ENOMSG condition in create_ruleset kernel-doc
From: Iván Ezequiel Rodriguez
Date: Mon Aug 31 2026 - 16:00:23 EST
The kernel-doc stated ENOMSG applies when handled_access_fs is empty,
but landlock_create_ruleset() returns ENOMSG only when handled_access_fs,
handled_access_net, and scoped are all zero.
Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@xxxxxxxxx>
---
security/landlock/syscalls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/landlock/syscalls.c b/security/landlock/syscalls.c
index 1d02d57f4c48..400a2f928de3 100644
--- a/security/landlock/syscalls.c
+++ b/security/landlock/syscalls.c
@@ -204,7 +204,7 @@ const int landlock_abi_version = 11;
* scoped;
* - %E2BIG: @attr or @size inconsistencies;
* - %EFAULT: @attr or @size inconsistencies;
- * - %ENOMSG: empty &landlock_ruleset_attr.handled_access_fs.
+ * - %ENOMSG: empty handled_access_fs, handled_access_net, and scoped fields.
*
* .. kernel-doc:: include/uapi/linux/landlock.h
* :identifiers: landlock_create_ruleset_flags
--
2.43.0