aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-12-12 02:17:09 +0100
committerDuncaen <mail@duncano.de>2017-12-12 02:17:22 +0100
commitef627e6d9df4eac6de11de4bcf4669823a424ad4 (patch)
tree384c797b90e7373109262880522970f6ce4c9fb9
parent7c364fd80021864ff69cf01e130eebeb734ea6f5 (diff)
downloadopendoas-ef627e6d9df4eac6de11de4bcf4669823a424ad4.tar.gz
persist_timestamp: don't allow og+rwx permission for timestamp directory
-rw-r--r--persist_timestamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/persist_timestamp.c b/persist_timestamp.c
index d4ffdd3..c608dca 100644
--- a/persist_timestamp.c
+++ b/persist_timestamp.c
@@ -147,7 +147,7 @@ check:
if ((st.st_mode & S_IFMT) != S_IFDIR)
errx(1, "timestamp directory is not a directory");
- if ((st.st_mode & (S_IWGRP|S_IRGRP|S_IWOTH|S_IROTH)) != 0)
+ if ((st.st_mode & (S_IWGRP|S_IRGRP|S_IXGRP|S_IWOTH|S_IROTH|S_IXOTH)) != 0)
errx(1, "timestamp directory permissions wrong");
if (st.st_uid != 0 || st.st_gid != 0)
errx(1, "timestamp directory is not owned by root");