]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
landlock.7: Use LANDLOCK_* constants for compatibility table
authorGünther Noack <gnoack3000@gmail.com>
Wed, 19 Apr 2023 18:54:41 +0000 (20:54 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 19 Apr 2023 20:31:48 +0000 (22:31 +0200)
Link: <https://lore.kernel.org/linux-man/5d90e3b0-1577-7efd-03b8-f94b6e50fbc1@digikod.net/>
Cc: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man7/landlock.7

index fc4a95031a03c8aa799d41646bb98d51a71e0b50..cb8a4f62e4e2735590ff463a8c2aa5ae1d2a0d61 100644 (file)
@@ -438,9 +438,9 @@ and only use the available subset of access rights:
  * numbers hardcoded to keep the example short.
  */
 __u64 landlock_fs_access_rights[] = {
-    (1ULL << 13) \- 1,  /* ABI v1                 */
-    (1ULL << 14) \- 1,  /* ABI v2: add "refer"    */
-    (1ULL << 15) \- 1,  /* ABI v3: add "truncate" */
+    (LANDLOCK_ACCESS_FS_MAKE_SYM << 1) \- 1,  /* v1                 */
+    (LANDLOCK_ACCESS_FS_REFER    << 1) \- 1,  /* v2: add "refer"    */
+    (LANDLOCK_ACCESS_FS_TRUNCATE << 1) \- 1,  /* v3: add "truncate" */
 };
 
 int abi = landlock_create_ruleset(NULL, 0,