summaryrefslogtreecommitdiffstats
path: root/nvmf-autoconnect/systemd/nvmf-connect@.service.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:11:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:11:06 +0000
commit3b675d02a399c3489327ff09418cb76ae0eeacd7 (patch)
tree4b2bde0b687e41a7028168cedcb381ac31049e2d /nvmf-autoconnect/systemd/nvmf-connect@.service.in
parentReleasing progress-linux version 2.8-2~progress7.99u1. (diff)
downloadnvme-cli-3b675d02a399c3489327ff09418cb76ae0eeacd7.tar.xz
nvme-cli-3b675d02a399c3489327ff09418cb76ae0eeacd7.zip
Merging upstream version 2.9.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'nvmf-autoconnect/systemd/nvmf-connect@.service.in')
-rw-r--r--nvmf-autoconnect/systemd/nvmf-connect@.service.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service.in b/nvmf-autoconnect/systemd/nvmf-connect@.service.in
index 5ba7086..3cec347 100644
--- a/nvmf-autoconnect/systemd/nvmf-connect@.service.in
+++ b/nvmf-autoconnect/systemd/nvmf-connect@.service.in
@@ -11,6 +11,18 @@ PartOf=nvmf-connect.target
Requires=nvmf-connect.target
[Service]
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+ProtectProc=invisible
+RestrictRealtime=true
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
+RemoveIPC=yes
+RestrictAddressFamilies=AF_INET AF_INET6
Type=simple
Environment="CONNECT_ARGS=%i"
ExecStart=/bin/sh -c "@SBINDIR@/nvme connect-all --context=autoconnect --quiet `/bin/echo -e '${CONNECT_ARGS}'`"