Alexandre Vicenzi
7bd39ec692
- 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
35 lines
821 B
Desktop File
35 lines
821 B
Desktop File
[Unit]
|
|
Description=Etcd Server
|
|
After=network.target
|
|
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
|
|
User=etcd
|
|
# set GOMAXPROCS to number of processors
|
|
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/sbin/etcd"
|
|
Restart=on-failure
|
|
LimitNOFILE=65536
|
|
Nice=-10
|
|
IOSchedulingClass=best-effort
|
|
IOSchedulingPriority=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|