Skip to contentSkip to conversation

landlock: Documentation wording cleanups

PATCH Applied Günther Noack 4 participants 4 messages May 16 – Jul 8

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 landlock: Documentation wording cleanups

Documentation cleanups suggested by Alejandro Colomar, which we have also applied in the man pages.

---
 include/uapi/linux/landlock.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/uapi/linux/landlock.h +4 -4
index 10a346e55e95..48c12ddf1108 100644
@@ -255,16 +255,16 @@ struct landlock_net_port_attr {
  *   :manpage:`connect(2)` as well as calls to :manpage:`sendmsg(2)` with an
  *   explicit recipient address.
  *
- *   This access right only applies to connections to UNIX server sockets which
+ *   This access right applies only to connections to UNIX server sockets which
  *   were created outside of the newly created Landlock domain (e.g. from within
  *   a parent domain or from an unrestricted process).  Newly created UNIX
  *   servers within the same Landlock domain continue to be accessible.  In this
  *   regard, %LANDLOCK_ACCESS_FS_RESOLVE_UNIX has the same semantics as the
  *   ``LANDLOCK_SCOPE_*`` flags.
  *
- *   If a resolve attempt is denied, the operation returns an ``EACCES`` error,
- *   in line with other filesystem access rights (but different to denials for
- *   abstract UNIX domain sockets).
+ *   If a resolution attempt is denied, the operation returns an ``EACCES``
+ *   error, in line with other filesystem access rights (but different to
+ *   denials for abstract UNIX domain sockets).
  *
  *   This access right is available since the ninth version of the Landlock ABI.
  *
Signature · 1 line
2.54.0
#1 lore raw

Hi Günther,

Quoted 1 line
Cc Alejandro Colomar <[email protected]>

I don't use that address anymore. (The gmail account still exists, but I'll eventually remove it.)

Quoted 15 lines · Günther Noack

Documentation cleanups suggested by Alejandro Colomar, which we have also applied in the man pages.

---
 include/uapi/linux/landlock.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/uapi/linux/landlock.h +0 -0
index 10a346e55e95..48c12ddf1108 100644

include/uapi/linux/landlock.h struct landlock_net_port_attr { · line 258

Quoted 5 lines
include/uapi/linux/landlock.h +1 -1
@@ -255,16 +255,16 @@ struct landlock_net_port_attr {
  *   :manpage:`connect(2)` as well as calls to :manpage:`sendmsg(2)` with an
  *   explicit recipient address.
  *
- *   This access right only applies to connections to UNIX server sockets which
+ *   This access right applies only to connections to UNIX server sockets which

Yup. As a reminder, 'only' applies to whatever comes immediately after it.

include/uapi/linux/landlock.h struct landlock_net_port_attr { · line 267

Quoted 12 lines
include/uapi/linux/landlock.h +3 -3
  *   were created outside of the newly created Landlock domain (e.g. from within
  *   a parent domain or from an unrestricted process).  Newly created UNIX
  *   servers within the same Landlock domain continue to be accessible.  In this
  *   regard, %LANDLOCK_ACCESS_FS_RESOLVE_UNIX has the same semantics as the
  *   ``LANDLOCK_SCOPE_*`` flags.
  *
- *   If a resolve attempt is denied, the operation returns an ``EACCES`` error,
- *   in line with other filesystem access rights (but different to denials for
- *   abstract UNIX domain sockets).
+ *   If a resolution attempt is denied, the operation returns an ``EACCES``
+ *   error, in line with other filesystem access rights (but different to
+ *   denials for abstract UNIX domain sockets).

I.e.: s/resolve/resolution/

I miss semantic newlines! :)

Have a lovely day!
Alex

Quoted 6 lines
include/uapi/linux/landlock.h +0 -0
  *
  *   This access right is available since the ninth version of the Landlock ABI.
  *
Signature · 1 line
2.54.0
Signature · 1 line
<https://www.alejandro-colomar.es>
#2 lore raw
In reply to Günther Noack
Quoted 38 lines · Günther Noack

Documentation cleanups suggested by Alejandro Colomar, which we have also applied in the man pages.

---
 include/uapi/linux/landlock.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/uapi/linux/landlock.h +4 -4
index 10a346e55e95..48c12ddf1108 100644
@@ -255,16 +255,16 @@ struct landlock_net_port_attr {
  *   :manpage:`connect(2)` as well as calls to :manpage:`sendmsg(2)` with an
  *   explicit recipient address.
  *
- *   This access right only applies to connections to UNIX server sockets which
+ *   This access right applies only to connections to UNIX server sockets which
  *   were created outside of the newly created Landlock domain (e.g. from within
  *   a parent domain or from an unrestricted process).  Newly created UNIX
  *   servers within the same Landlock domain continue to be accessible.  In this
  *   regard, %LANDLOCK_ACCESS_FS_RESOLVE_UNIX has the same semantics as the
  *   ``LANDLOCK_SCOPE_*`` flags.
  *
- *   If a resolve attempt is denied, the operation returns an ``EACCES`` error,
- *   in line with other filesystem access rights (but different to denials for
- *   abstract UNIX domain sockets).
+ *   If a resolution attempt is denied, the operation returns an ``EACCES``
+ *   error, in line with other filesystem access rights (but different to
+ *   denials for abstract UNIX domain sockets).
  *
  *   This access right is available since the ninth version of the Landlock ABI.
  *
Signature · 1 line
2.54.0

Friendly ping, Mickaël!

This is only a minor change, but keeps the man pages and kernel docs wording in line.

—Günther

maintainer Applied
#3 lore raw
In reply to Günther Noack

Thanks, applied!

Quoted 39 lines · Günther Noack

Documentation cleanups suggested by Alejandro Colomar, which we have also applied in the man pages.

---
 include/uapi/linux/landlock.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/uapi/linux/landlock.h +4 -4
index 10a346e55e95..48c12ddf1108 100644
@@ -255,16 +255,16 @@ struct landlock_net_port_attr {
  *   :manpage:`connect(2)` as well as calls to :manpage:`sendmsg(2)` with an
  *   explicit recipient address.
  *
- *   This access right only applies to connections to UNIX server sockets which
+ *   This access right applies only to connections to UNIX server sockets which
  *   were created outside of the newly created Landlock domain (e.g. from within
  *   a parent domain or from an unrestricted process).  Newly created UNIX
  *   servers within the same Landlock domain continue to be accessible.  In this
  *   regard, %LANDLOCK_ACCESS_FS_RESOLVE_UNIX has the same semantics as the
  *   ``LANDLOCK_SCOPE_*`` flags.
  *
- *   If a resolve attempt is denied, the operation returns an ``EACCES`` error,
- *   in line with other filesystem access rights (but different to denials for
- *   abstract UNIX domain sockets).
+ *   If a resolution attempt is denied, the operation returns an ``EACCES``
+ *   error, in line with other filesystem access rights (but different to
+ *   denials for abstract UNIX domain sockets).
  *
  *   This access right is available since the ninth version of the Landlock ABI.
  *
Signature · 1 line
2.54.0