From f82c1554c147b04023b5eaec0ee0e9ce49aff1b392712204a87a0361061c8508 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 11 Nov 2021 09:58:18 +0000 Subject: [PATCH] Accepting request 926715 from home:jsegitz:branches:systemdhardening:network:time Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/926715 OBS-URL: https://build.opensuse.org/package/show/network:time/ptpd?expand=0&rev=26 --- ptpd.changes | 6 ++++++ ptpd2.service | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/ptpd.changes b/ptpd.changes index 1da5af5..985001c 100644 --- a/ptpd.changes +++ b/ptpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 20 14:32:53 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s) (bsc#1181400). Modified: + * ptpd2.service + ------------------------------------------------------------------- Wed Aug 19 09:08:14 UTC 2020 - Dominique Leuenberger diff --git a/ptpd2.service b/ptpd2.service index 2a112e1..6822f35 100644 --- a/ptpd2.service +++ b/ptpd2.service @@ -2,6 +2,16 @@ Description=ptpd time precision daemon [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +ProtectHome=true +ProtectHostname=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +# end of automatic additions Type=forking EnvironmentFile=-/etc/sysconfig/ptpd2 ExecStart=/usr/sbin/ptpd2 -c $PTPD_CONFIG_FILE $PTPD_EXTRA_OPTIONS