interplane.Get Omega
Read in your language

readings-window

aien-dev/readings-window

Brought by drakestapleton

branch main Branches Tags History

readings-window / scripts / readings-sandbox.conf

33 lines · 1108 bytes Raw Blame History
1# Sandbox drop-in for readings-window.service and readings-collect.service (install as
2# /etc/systemd/system/<unit>.service.d/sandbox.conf, then daemon-reload and restart the unit).
3# Still uid 0, because the token, the TLS key and the ssh key to the Spark are root-owned mode 600, but with no
4# capabilities, a read-only system and home, and one writable directory. systemd-analyze security: 9.6 -> 1.7.
5# Undo: remove the file, daemon-reload, restart.
6[Service]
7NoNewPrivileges=yes
8CapabilityBoundingSet=
9AmbientCapabilities=
10ProtectSystem=strict
11ReadWritePaths=/var/lib/readings-window
12ProtectHome=read-only
13PrivateTmp=yes
14PrivateDevices=yes
15ProtectKernelTunables=yes
16ProtectKernelModules=yes
17ProtectKernelLogs=yes
18ProtectControlGroups=yes
19ProtectClock=yes
20ProtectHostname=yes
21ProtectProc=invisible
22ProcSubset=pid
23RestrictNamespaces=yes
24RestrictRealtime=yes
25RestrictSUIDSGID=yes
26LockPersonality=yes
27MemoryDenyWriteExecute=yes
28RemoveIPC=yes
29RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
30SystemCallArchitectures=native
31SystemCallFilter=@system-service
32SystemCallFilter=~@privileged @resources
33UMask=0077