All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Günther Noack" <gnoack3000@gmail.com>
To: Tingmao Wang <m@maowtm.org>
Cc: "Mickaël Salaün" <mic@digikod.net>,
	"Justin Suess" <utilityemal77@gmail.com>,
	"Jan Kara" <jack@suse.cz>, "Abhinav Saxena" <xandfury@gmail.com>,
	linux-security-module@vger.kernel.org
Subject: Re: [PATCH v11 2/9] landlock: Add API support and docs for the quiet flags
Date: Fri, 28 Aug 2026 17:38:41 +0200	[thread overview]
Message-ID: <20260828.208b6abc08a1@gnoack.org> (raw)
In-Reply-To: <031184748a8e74c0bb02f1fa13d7a3f10918c627.1781228815.git.m@maowtm.org>

Hello Tingmao!

On Fri, Jun 12, 2026 at 02:48:48AM +0100, Tingmao Wang wrote:
> diff --git a/Documentation/userspace-api/landlock.rst b/Documentation/userspace-api/landlock.rst
> index 0ea55c2c732c..ce63ec564229 100644
> --- a/Documentation/userspace-api/landlock.rst
> +++ b/Documentation/userspace-api/landlock.rst
> @@ -775,6 +775,20 @@ remote port of UDP sockets (via :manpage:`connect(2)), and sending
>  datagrams to an explicit remote port (ignoring any destination set on
>  UDP sockets, via e.g. :manpage:`sendto(2)).
>  
> +Quiet rule flag (ABI < 10)
> +--------------------------
> +
> +Starting with the Landlock ABI version 10, it is possible to selectively
> +suppress logs for specific denied accesses on a per-object basis with
> +the ``LANDLOCK_ADD_RULE_QUIET`` flag of sys_landlock_add_rule(), in
> +combination with the ``quiet_access_fs`` and ``quiet_access_net`` fields
> +of struct landlock_ruleset_attr.  It is also now possible to suppress
> +logs for scope accesses via the ``quiet_scoped`` field of struct
> +landlock_ruleset_attr.  The object is marked as quiet within a ruleset
> +when at least one sys_landlock_add_rule() call is made for it with the
> +``LANDLOCK_ADD_RULE_QUIET`` flag, additional add-rule calls for the same
> +object without this flag do not clear it.
> +
>  .. _kernel_support:
>  
>  Kernel support

Friendly reminder -- could you please also transcribe the newly added
documentation into the Landlock man pages?  I added a tracking issue
at https://github.com/landlock-lsm/linux/issues/66 where I outlined
the rough process, which is mostly mechanical.  I am happy to do a
review.

Thanks,
Günther

  reply	other threads:[~2026-08-28 15:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12  1:48 [PATCH v11 0/9] Implement LANDLOCK_ADD_RULE_QUIET Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 1/9] landlock: Add a place for flags to layer rules Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 2/9] landlock: Add API support and docs for the quiet flags Tingmao Wang
2026-08-28 15:38   ` Günther Noack [this message]
2026-06-12  1:48 ` [PATCH v11 3/9] landlock: Suppress logging when quiet flag is present Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 4/9] samples/landlock: Add quiet flag support to sandboxer Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 5/9] selftests/landlock: Replace hard-coded 16 with a constant Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 6/9] selftests/landlock: add tests for quiet flag with fs rules Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 7/9] selftests/landlock: add tests for quiet flag with net rules Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 8/9] selftests/landlock: Add tests for quiet flag with scope Tingmao Wang
2026-06-12  1:48 ` [PATCH v11 9/9] selftests/landlock: Add tests for invalid use of quiet flag Tingmao Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260828.208b6abc08a1@gnoack.org \
    --to=gnoack3000@gmail.com \
    --cc=jack@suse.cz \
    --cc=linux-security-module@vger.kernel.org \
    --cc=m@maowtm.org \
    --cc=mic@digikod.net \
    --cc=utilityemal77@gmail.com \
    --cc=xandfury@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.