Przeglądaj źródła

Update log2ram.service

untested. partial sandboxing.
pull/195/head
TubbyCat 2 lat temu
committed by GitHub
rodzic
commit
e38c73e2d5
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 23 dodań i 0 usunięć
  1. +23
    -0
      log2ram.service

+ 23
- 0
log2ram.service Wyświetl plik

@@ -15,5 +15,28 @@ ExecReload= /usr/local/bin/log2ram write
TimeoutStartSec=120
RemainAfterExit=yes

#SANDBOXING# -- NEEDS TESTING
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPriviliges=true
#PrivateDevices=
#PrivateNetwork=true
#Will likely break "MAIL" in log2ram.config if does not point to localhost / disabled
ProtectClock=true
ProtectControlGroups=
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
RestrictSUIDSGID=true
ProtectSystem=full
# ALT: ProtectSystem=true # if-and-only-if needs /etc, but can whitelist dir prn
ProtectHome=true
#will likely break situations wherein configured to also copy logs from $HOME.
#can probably fix with systemctl edit to whitelist relevant dirs




[Install]
WantedBy=sysinit.target

Ładowanie…
Anuluj
Zapisz