Re: [RFC PATCH v10 23/28] landlock: Enforce namespace use restrictions on run

From: bot+bpf-ci

Date: Fri Dec 04 2026 - 23:02:03 EST


> landlock: Enforce namespace use restrictions on run

TL;DR: Nit only: a comment in landlock ns.c refers to a run(2) syscall, but
the series defines runfd(); it probably should say runfd(2).

> diff --git a/security/landlock/ns.c b/security/landlock/ns.c
> --- a/security/landlock/ns.c
> +++ b/security/landlock/ns.c

[ ... ]

> @@ -93,10 +104,10 @@ static const struct access_masks ns_permission = {
> * @request_type: Namespace operation reported on denial.
> *
> * Shared check for namespace_init (creation via clone(2), unshare(2),
> - * open_tree(2), or fsmount(2)) and namespace_install (use via setns(2)): denies
> - * when the namespace type is not in the domain's allowed set. At allocation
> - * time @ns->ns_id is already set even though the namespace is not reachable
> - * from user space yet.
> + * open_tree(2), fsmount(2), or run(2)), namespace_install (use via
> + * setns(2)), and runfd_share / runfd_clone: denies when the namespace
> + * type is not in the domain's allowed set. At allocation time @ns->ns_id is
> + * already set even though the namespace is not reachable from user space yet.
> *
> * Return: 0 if allowed, -EPERM if denied.
> */

This isn't a bug, but there is no run(2) system call in this series. The
syscall is runfd():

kernel/runfd.c:
SYSCALL_DEFINE1(runfd, unsigned int, flags)

Should the comment say runfd(2) instead of run(2)?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/47474652355