diff mbox series

[2/7] docs: landlock: fix ENOMSG condition in create_ruleset kernel-doc

Message ID 20260831143125.151360-3-ivanrwcm25@gmail.com
State New
Headers show
Series docs/abi: align userspace documentation with implementation | expand

Commit Message

Iván Ezequiel Rodriguez Aug. 31, 2026, 2:31 p.m. UTC
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@gmail.com>
---
 security/landlock/syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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