Accepting request 933471 from home:jsegitz:branches:systemdhardening:filesystems

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/933471
OBS-URL: https://build.opensuse.org/package/show/filesystems/systemd-zram-service?expand=0&rev=4
This commit is contained in:
Dirk Mueller 2021-11-28 19:22:08 +00:00 committed by Git OBS Bridge
parent 1ef7218152
commit f793ade1c0
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 24 12:39:05 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* zramswap.service
-------------------------------------------------------------------
Mon Dec 17 22:59:00 UTC 2018 - malcolmlewis@opensuse.org

View File

@ -8,6 +8,19 @@ Description=Service enabling compressing RAM with zRam
After=multi-user.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=oneshot
ExecStart=/usr/sbin/zramswapon
ExecStop=/usr/sbin/zramswapoff