From 0df1914cdee0e31969a0127b0fcf20ab884384e6 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 18 Mar 2026 14:26:31 +0100 Subject: [PATCH] Add macros for ACL. Signed-off-by: Pol Henarejos --- src/fs/file.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fs/file.h b/src/fs/file.h index 97eec9f..1cb605d 100644 --- a/src/fs/file.h +++ b/src/fs/file.h @@ -55,6 +55,13 @@ #define ACL_OP_UPDATE_ERASE 0x05 #define ACL_OP_READ_SEARCH 0x06 +#define ACL_NONE { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } +#define ACL_ALL { 0 } +#define ACL_RO { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00 } +#define ACL_RW { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 } +#define ACL_R_WP { 0xff, 0xff, 0xff, 0xff, 0x90, 0x90, 0x00 } +#define ACL_WP { 0xff, 0xff, 0xff, 0xff, 0x90, 0x90, 0xff } + #define SPECIFY_EF 0x1 #define SPECIFY_DF 0x2 #define SPECIFY_ANY 0x3