From: "Günther Noack" <gnoack3000@gmail.com>
To: "Mickaël Salaün" <mic@digikod.net>
Cc: James Morris <jmorris@namei.org>,
Paul Moore <paul@paul-moore.com>,
"Serge E . Hallyn" <serge@hallyn.com>,
Alejandro Colomar <alx.manpages@gmail.com>,
Jonathan Corbet <corbet@lwn.net>,
Konstantin Meskhidze <konstantin.meskhidze@huawei.com>,
linux-doc@vger.kernel.org, linux-security-module@vger.kernel.org
Subject: Re: [PATCH v1 2/3] landlock: Slightly improve documentation and fix spelling
Date: Fri, 23 Sep 2022 23:03:18 +0200 [thread overview]
Message-ID: <Yy4fFkyGWnOaosX7@nuc> (raw)
In-Reply-To: <20220923154207.3311629-3-mic@digikod.net>
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
On Fri, Sep 23, 2022 at 05:42:06PM +0200, Mickaël Salaün wrote:
> Now that we have more than one ABI version, make limitation explanation
> more consistent by replacing "ABI 1" with "ABI < 2". This also
> indicates which ABIs support such past limitation.
>
> Improve documentation consistency by not using contractions.
>
> Fix spelling in fs.c .
>
> Cc: Günther Noack <gnoack3000@gmail.com>
> Cc: Paul Moore <paul@paul-moore.com>
> Signed-off-by: Mickaël Salaün <mic@digikod.net>
> Link: https://lore.kernel.org/r/20220923154207.3311629-3-mic@digikod.net
> ---
> Documentation/security/landlock.rst | 4 ++--
> Documentation/userspace-api/landlock.rst | 10 +++++-----
> security/landlock/fs.c | 2 +-
> 3 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/security/landlock.rst b/Documentation/security/landlock.rst
> index 5c77730b4479..cc9617f3175b 100644
> --- a/Documentation/security/landlock.rst
> +++ b/Documentation/security/landlock.rst
> @@ -7,7 +7,7 @@ Landlock LSM: kernel documentation
> ==================================
>
> :Author: Mickaël Salaün
> -:Date: May 2022
> +:Date: September 2022
>
> Landlock's goal is to create scoped access-control (i.e. sandboxing). To
> harden a whole system, this feature should be available to any process,
> @@ -49,7 +49,7 @@ Filesystem access rights
> ------------------------
>
> All access rights are tied to an inode and what can be accessed through it.
> -Reading the content of a directory doesn't imply to be allowed to read the
> +Reading the content of a directory does not imply to be allowed to read the
> content of a listed inode. Indeed, a file name is local to its parent
> directory, and an inode can be referenced by multiple file names thanks to
> (hard) links. Being able to unlink a file only has a direct impact on the
> diff --git a/Documentation/userspace-api/landlock.rst b/Documentation/userspace-api/landlock.rst
> index b8ea59493964..83bae71bf042 100644
> --- a/Documentation/userspace-api/landlock.rst
> +++ b/Documentation/userspace-api/landlock.rst
> @@ -8,7 +8,7 @@ Landlock: unprivileged access control
> =====================================
>
> :Author: Mickaël Salaün
> -:Date: May 2022
> +:Date: September 2022
>
> The goal of Landlock is to enable to restrict ambient rights (e.g. global
> filesystem access) for a set of processes. Because Landlock is a stackable
> @@ -170,7 +170,7 @@ It is recommended setting access rights to file hierarchy leaves as much as
> possible. For instance, it is better to be able to have ``~/doc/`` as a
> read-only hierarchy and ``~/tmp/`` as a read-write hierarchy, compared to
> ``~/`` as a read-only hierarchy and ``~/tmp/`` as a read-write hierarchy.
> -Following this good practice leads to self-sufficient hierarchies that don't
> +Following this good practice leads to self-sufficient hierarchies that do not
> depend on their location (i.e. parent directories). This is particularly
> relevant when we want to allow linking or renaming. Indeed, having consistent
> access rights per directory enables to change the location of such directory
> @@ -380,8 +380,8 @@ by the Documentation/admin-guide/cgroup-v1/memory.rst.
> Previous limitations
> ====================
>
> -File renaming and linking (ABI 1)
> ----------------------------------
> +File renaming and linking (ABI < 2)
> +-----------------------------------
>
> Because Landlock targets unprivileged access controls, it needs to properly
> handle composition of rules. Such property also implies rules nesting.
> @@ -410,7 +410,7 @@ contains `CONFIG_LSM=landlock,[...]` with `[...]` as the list of other
> potentially useful security modules for the running system (see the
> `CONFIG_LSM` help).
>
> -If the running kernel doesn't have `landlock` in `CONFIG_LSM`, then we can
> +If the running kernel does not have `landlock` in `CONFIG_LSM`, then we can
> still enable it by adding ``lsm=landlock,[...]`` to
> Documentation/admin-guide/kernel-parameters.rst thanks to the bootloader
> configuration.
> diff --git a/security/landlock/fs.c b/security/landlock/fs.c
> index a9dbd99d9ee7..64ed7665455f 100644
> --- a/security/landlock/fs.c
> +++ b/security/landlock/fs.c
> @@ -712,7 +712,7 @@ static inline access_mask_t maybe_remove(const struct dentry *const dentry)
> * allowed accesses in @layer_masks_dom.
> *
> * This is similar to check_access_path_dual() but much simpler because it only
> - * handles walking on the same mount point and only check one set of accesses.
> + * handles walking on the same mount point and only checks one set of accesses.
> *
> * Returns:
> * - true if all the domain access rights are allowed for @dir;
> --
> 2.37.2
>
--
next prev parent reply other threads:[~2022-09-23 21:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 15:42 [PATCH v1 0/3] Improve Landlock help Mickaël Salaün
2022-09-23 15:42 ` [PATCH v1 1/3] samples/landlock: Print hints about ABI versions Mickaël Salaün
2022-09-23 21:02 ` Günther Noack
2022-09-27 16:23 ` Mickaël Salaün
2022-09-23 15:42 ` [PATCH v1 2/3] landlock: Slightly improve documentation and fix spelling Mickaël Salaün
2022-09-23 21:03 ` Günther Noack [this message]
2022-09-24 13:29 ` Bagas Sanjaya
2022-09-26 1:09 ` Akira Yokosawa
2022-09-26 1:46 ` Bagas Sanjaya
2022-09-26 4:10 ` Akira Yokosawa
2022-09-26 7:20 ` Bagas Sanjaya
2022-09-27 16:43 ` Mickaël Salaün
2022-09-23 15:42 ` [PATCH v1 3/3] landlock: Fix documentation style Mickaël Salaün
2022-09-23 21:18 ` Günther Noack
2022-09-27 16:58 ` Mickaël Salaün
2022-09-24 9:50 ` Bagas Sanjaya
2022-09-27 16:52 ` Mickaël Salaün
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=Yy4fFkyGWnOaosX7@nuc \
--to=gnoack3000@gmail.com \
--cc=alx.manpages@gmail.com \
--cc=corbet@lwn.net \
--cc=jmorris@namei.org \
--cc=konstantin.meskhidze@huawei.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=mic@digikod.net \
--cc=paul@paul-moore.com \
--cc=serge@hallyn.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.