mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-19 18:24:31 +02:00
fix: Ensure DMS config volume can be accessed by non-root users
This commit is contained in:
parent
e5728cf7b6
commit
e300cde93e
1 changed files with 6 additions and 0 deletions
|
@ -104,6 +104,12 @@ function _setup_directory_and_file_permissions() {
|
|||
chown -R _rspamd:_rspamd "${RSPAMD_DMS_DKIM_D}"
|
||||
fi
|
||||
|
||||
# Parent directories must have the executable bit set to descend the file tree for access,
|
||||
# as each service in the container running as a non-root user requires this to access any subpath,
|
||||
# `/tmp/docker-mailserver` must allow all users `+x` (notably required for `_rspamd` user read access):
|
||||
local DMS_CONFIG_DIR=/tmp/docker-mailserver
|
||||
chmod +x "${DMS_CONFIG_DIR}"
|
||||
|
||||
__log_fixes
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue