William Petit
9f89c89fb9
All checks were successful
arcad/edge/pipeline/pr-master This commit looks good
35 lines
982 B
Desktop File
35 lines
982 B
Desktop File
[Unit]
|
|
Description=storage-server service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=on-failure
|
|
EnvironmentFile=/etc/storage-server/environ
|
|
ExecStart=/usr/bin/storage-server
|
|
EnvironmentFile=/etc/storage-server/environ
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
PrivateUsers=yes
|
|
DynamicUser=yes
|
|
StateDirectory=storage-server
|
|
DevicePolicy=closed
|
|
ProtectSystem=true
|
|
ProtectHome=read-only
|
|
ProtectKernelLogs=yes
|
|
ProtectProc=invisible
|
|
ProtectClock=yes
|
|
ProtectControlGroups=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
MemoryDenyWriteExecute=yes
|
|
LockPersonality=yes
|
|
CapabilityBoundingSet=~CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_IPC_OWNER CAP_NET_ADMIN CAP_WAKE_ALARM CAP_SYS_TTY_CONFIG
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |