Skip to content

Commit

Permalink
systemd: Harden stafd/stacd service files
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
  • Loading branch information
Martin Belanger committed Apr 29, 2024
1 parent a0f6948 commit adae004
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions usr/lib/systemd/system/stacd.in.service
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,14 @@ RuntimeDirectory=stacd
CacheDirectory=stacd
RuntimeDirectoryPreserve=yes

ProtectHome=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectProc=invisible
RestrictRealtime=true
LockPersonality=yes
MemoryDenyWriteExecute=yes

[Install]
WantedBy=multi-user.target
9 changes: 9 additions & 0 deletions usr/lib/systemd/system/stafd.in.service
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,14 @@ RuntimeDirectory=stafd
CacheDirectory=stafd
RuntimeDirectoryPreserve=yes

ProtectHome=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectProc=invisible
RestrictRealtime=true
LockPersonality=yes
MemoryDenyWriteExecute=yes

[Install]
WantedBy=multi-user.target

0 comments on commit adae004

Please sign in to comment.