mail-filter/amavisd-new-2.11.0-r2: additional systemd hardening
authorCraig Andrews <candrews@integralblue.com>
Wed, 29 Jun 2016 20:58:13 +0000 (16:58 -0400)
committerMike Gilbert <floppym@gentoo.org>
Mon, 8 Aug 2016 23:04:32 +0000 (19:04 -0400)
Gentoo-bug: 587540
Closes: https://github.com/gentoo/gentoo/pull/1797

mail-filter/amavisd-new/amavisd-new-2.11.0-r2.ebuild [moved from mail-filter/amavisd-new/amavisd-new-2.11.0-r1.ebuild with 100% similarity]
mail-filter/amavisd-new/files/amavisd.service

index 2a56e443eedd670bf411b3afc4f779e323d20c62..c53c38ac16323f49d7a0edd724d402da5f97fafc 100644 (file)
@@ -6,8 +6,17 @@ Wants=clamd.service
 After=network.target
 
 [Service]
+User=amavis
+Group=amavis
 ExecStart=/usr/sbin/amavisd -c /etc/amavisd.conf foreground
 ExecReload=/usr/sbin/amavisd -c /etc/amavisd.conf reload
+PrivateTmp=true
+CapabilityBoundingSet=
+ProtectSystem=full
+NoNewPrivileges=true
+PrivateDevices=true
+ProtectHome=true
+MemoryDenyWriteExecute=true
 
 [Install]
 WantedBy=multi-user.target