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
This commit is contained in:
Martin Pluskal 2021-11-11 09:58:18 +00:00 committed by Git OBS Bridge
parent 0398d190cd
commit f82c1554c1
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 20 14:32:53 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* ptpd2.service
-------------------------------------------------------------------
Wed Aug 19 09:08:14 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -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