dim/backport-Change-the-permissions-of-the-dim-directory-to-500.patch
gengqihu aa8b95bbc3 fix some bugs and enabled DIM_HASH_SUPPORT_SM3
(cherry picked from commit 0a495bbcfd0310783f15faeacbdb655cff3d54de)
2024-08-19 16:04:32 +08:00

26 lines
748 B
Diff

From 09d308cc79011c1d83fb9ffe7741c7b023f07cbe Mon Sep 17 00:00:00 2001
From: jinlun <jinlun@huawei.com>
Date: Tue, 18 Jun 2024 09:28:08 +0800
Subject: [PATCH 10/14] Change the permissions of the dim directory to 500
---
src/common/dim_entry.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/dim_entry.h b/src/common/dim_entry.h
index 1c557b8..bb023b6 100644
--- a/src/common/dim_entry.h
+++ b/src/common/dim_entry.h
@@ -11,7 +11,7 @@
#include "dim_measure_log.h"
-#define DIM_ENTRY_DIR_MASK (S_IFDIR | S_IRWXU | S_IRUSR)
+#define DIM_ENTRY_DIR_MASK (S_IFDIR | S_IXUSR | S_IRUSR)
#define DIM_ENTRY_RW_MASK (S_IWUSR | S_IRUSR)
#define DIM_ENTRY_W_MASK (S_IWUSR)
#define DIM_ENTRY_R_MASK (S_IRUSR)
--
2.33.0