ksmbd: change ACE types to enumeration
authorNamjae Jeon <namjae.jeon@samsung.com>
Wed, 30 Jun 2021 00:37:43 +0000 (09:37 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Wed, 30 Jun 2021 05:43:53 +0000 (14:43 +0900)
Change ACE types to enumeration.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smbacl.h

index fb5480f..baa9b9b 100644 (file)
 #define NUM_AUTHS (6)  /* number of authority fields */
 #define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */
 
-#define ACCESS_ALLOWED 0
-#define ACCESS_DENIED  1
+/*
+ * ACE types - see MS-DTYP 2.4.4.1
+ */
+enum {
+       ACCESS_ALLOWED,
+       ACCESS_DENIED,
+};
 
 #define SIDOWNER 1
 #define SIDGROUP 2