Accepting request 919082 from home:jsegitz:branches:systemdhardening:devel:kubic

- Added hardening to systemd service(s) (bsc#1181400). Modified:
  * etcd.service

OBS-URL: https://build.opensuse.org/request/show/919082
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/etcd?expand=0&rev=17
This commit is contained in:
Alexandre Vicenzi 2021-09-17 10:05:22 +00:00 committed by Git OBS Bridge
parent 1a5ad6129c
commit 7bd39ec692
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 14 07:23:37 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* etcd.service
-------------------------------------------------------------------
Mon Aug 9 14:22:24 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -5,6 +5,19 @@ After=network-online.target
Wants=network-online.target
[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
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
Type=notify
WorkingDirectory=/var/lib/etcd/
EnvironmentFile=-/etc/sysconfig/etcd