Dirk Mueller
e57e6f060f
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/933785 OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=50
26 lines
834 B
Desktop File
26 lines
834 B
Desktop File
[Unit]
|
|
Description=tgt admin
|
|
After=network.target
|
|
|
|
[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
|
|
ProtectKernelLogs=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
EnvironmentFile=-/etc/sysconfig/tgt
|
|
Type=forking
|
|
User=root
|
|
ExecStart=/usr/sbin/tgtd $TGTD_OPTS
|
|
ExecStartPost=/bin/bash -c "sleep 0.5 ; /usr/sbin/tgtadm --op update --mode sys --name State -v offline ; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; /usr/sbin/tgtadm --op update --mode sys --name State -v ready"
|
|
# only valid in .socket: ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null
|
|
ExecStop=-/usr/sbin/tgtadm --op delete --mode system
|
|
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|