Accepting request 923291 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/923291 OBS-URL: https://build.opensuse.org/package/show/network:time/linuxptp?expand=0&rev=22
This commit is contained in:
parent
60b66736e4
commit
7ad53cbd5b
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 5 11:41:43 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Modified:
|
||||||
|
* phc2sys.service
|
||||||
|
* ptp4l.service
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 06 08:06:16 UTC 2021 - jbohac@suse.com
|
Tue Jul 06 08:06:16 UTC 2021 - jbohac@suse.com
|
||||||
|
|
||||||
|
@ -3,6 +3,19 @@ Description=PTP: Synchronize two clocks
|
|||||||
After=ntpdate.service
|
After=ntpdate.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
# added automatically, for details please see
|
||||||
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
|
ProtectSystem=full
|
||||||
|
ProtectHome=true
|
||||||
|
PrivateDevices=true
|
||||||
|
ProtectHostname=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
DeviceAllow=/dev/rtc
|
||||||
|
# end of automatic additions
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=-/etc/sysconfig/phc2sys
|
EnvironmentFile=-/etc/sysconfig/phc2sys
|
||||||
ExecStart=/usr/sbin/phc2sys $OPTIONS
|
ExecStart=/usr/sbin/phc2sys $OPTIONS
|
||||||
|
@ -2,6 +2,19 @@
|
|||||||
Description=PTP: Boundary/Ordinary Clock
|
Description=PTP: Boundary/Ordinary Clock
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
# added automatically, for details please see
|
||||||
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
|
ProtectSystem=full
|
||||||
|
ProtectHome=true
|
||||||
|
PrivateDevices=true
|
||||||
|
ProtectHostname=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
DeviceAllow=/dev/rtc
|
||||||
|
# end of automatic additions
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=-/etc/sysconfig/ptp4l
|
EnvironmentFile=-/etc/sysconfig/ptp4l
|
||||||
ExecStart=/usr/sbin/ptp4l $OPTIONS
|
ExecStart=/usr/sbin/ptp4l $OPTIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user