summaryrefslogtreecommitdiff
path: root/installation
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2018-12-28 20:14:29 +0000
committerkaniini <nenolod@gmail.com>2018-12-28 20:14:29 +0000
commit89fbed88212657e3dcd4bbcb2c0718b07802037f (patch)
treec3df6bb1f1a9bb5fe7751eabb639ac57c4ec266b /installation
parent68f483ef4cf6856c3116504987142670bc6ac76c (diff)
parent64035201b56ee78dc937dfa675e610c03850dcad (diff)
Merge branch 'systemd-drop-sysadmin-privilege' into 'develop'
Security/Drops the sysadmin privilege from the daemon See merge request pleroma/pleroma!604
Diffstat (limited to 'installation')
-rw-r--r--installation/pleroma.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/installation/pleroma.service b/installation/pleroma.service
index 6955e5cc6..f1ed56cb3 100644
--- a/installation/pleroma.service
+++ b/installation/pleroma.service
@@ -21,6 +21,8 @@ ProtectSystem=full
PrivateDevices=false
; Ensures that the service process and all its children can never gain new privileges through execve().
NoNewPrivileges=true
+; Drops the sysadmin capability from the daemon.
+CapabilityBoundingSet=~CAP_SYS_ADMIN
[Install]
WantedBy=multi-user.target