Add some permissions to READ_RIGHT, etc.
@@ -77,9 +77,9 @@ PATH_UNLINK_FILE := $(shell echo "2^26" | bc)
POLL_FD_READWRITE := $(shell echo "2^27" | bc)
SOCK_SHUTDOWN := $(shell echo "2^28" | bc)
# Common rights
-READ_RIGHT := $(shell echo $(FD_READ) + $(FD_SEEK) + $(PATH_OPEN) | bc)
-WRITE_RIGHT := $(shell echo $(FD_WRITE) + $(PATH_CREATE_FILE) + $(PATH_FILESTAT_SET_SIZE) + $(FD_SEEK) + $(PATH_OPEN) | bc)
-READ_WRITE_RIGHT := $(shell echo $(FD_READ) + $(FD_WRITE) + $(PATH_CREATE_FILE) + $(PATH_FILESTAT_SET_SIZE) + $(FD_SEEK) + $(PATH_OPEN) | bc)
+READ_RIGHT := $(shell echo $(FD_READ) + $(FD_SEEK) + $(PATH_OPEN) + $(FD_READDIR) | bc)
+WRITE_RIGHT := $(shell echo $(FD_WRITE) + $(PATH_CREATE_FILE) + $(PATH_FILESTAT_SET_SIZE) + $(FD_SEEK) + $(PATH_OPEN) + $(PATH_CREATE_DIRECTORY) | bc)
+READ_WRITE_RIGHT := $(shell echo $(FD_READ) + $(FD_SEEK) + $(PATH_OPEN) + $(FD_READDIR) + $(FD_WRITE) + $(PATH_CREATE_FILE) + $(PATH_FILESTAT_SET_SIZE) + $(PATH_CREATE_DIRECTORY) | bc)
ifeq ($(PLATFORM), Darwin)
CERTIFICATE_EXPIRY := "$(shell date -Rf +100d)"
