]> granicus.if.org Git - ejabberd/commitdiff
Don't let systemd hide /home and /tmp
authorHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 19 Oct 2016 21:11:26 +0000 (23:11 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 19 Oct 2016 21:11:26 +0000 (23:11 +0200)
Admins might expect ejabberd to be able to access data below /home or
/tmp.  For example, they might use those locations to dump/restore
Mnesia backups, or as a document root for mod_http_fileserver or
mod_http_upload.

Fixes #1297.

ejabberd.service.template

index 49ba14737caa0ed4e597291fa2a9c7ca060bd809..fdb8fd0b717b001a62bb4c99e1bdd0d550a2d0ad 100644 (file)
@@ -14,9 +14,7 @@ Type=oneshot
 RemainAfterExit=yes
 # The CAP_DAC_OVERRIDE capability is required for pam authentication to work
 CapabilityBoundingSet=CAP_DAC_OVERRIDE
-PrivateTmp=true
 PrivateDevices=true
-ProtectHome=true
 ProtectSystem=full
 NoNewPrivileges=true