interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / scripts / allen / contacts / allen-contacts-ingest.service

56 lines · 1555 bytes Raw Blame History
1[Unit]
2Description=allen-contacts-ingest: move Allen contact drops into the private store
3Documentation=file:///opt/allen-contacts/allen_contacts_ingest.om
4
5[Service]
6Type=oneshot
7# System user (nologin, no sudo); member of allen-drop to read the gateway's 0640 drops.
8User=allen-contacts
9UMask=0077
10Nice=19
11# Seeded-Omega binary built from allen_contacts_ingest.om by the pinned omc (install-contacts.sh).
12ExecStart=/opt/allen-contacts/allen-contacts-ingest ingest
13TimeoutStartSec=60
14StandardOutput=journal
15StandardError=journal
16
17# Filesystem: writes only the drop dir (to delete drops) and the store; code is root-owned.
18ProtectSystem=strict
19ProtectHome=yes
20ReadWritePaths=/var/lib/allen-chat/contacts-drop /var/lib/allen-contacts
21PrivateTmp=yes
22PrivateDevices=yes
23PrivateIPC=yes
24DevicePolicy=closed
25# Without these a sandbox can read other processes' files through /proc/<pid>/root.
26PrivateUsers=yes
27ProtectProc=invisible
28ProcSubset=pid
29
30# No network at all.
31PrivateNetwork=yes
32IPAddressDeny=any
33RestrictAddressFamilies=AF_UNIX
34
35# Privileges and kernel surface.
36NoNewPrivileges=yes
37CapabilityBoundingSet=
38AmbientCapabilities=
39LockPersonality=yes
40MemoryDenyWriteExecute=yes
41RestrictNamespaces=yes
42RestrictRealtime=yes
43RestrictSUIDSGID=yes
44ProtectKernelTunables=yes
45ProtectKernelModules=yes
46ProtectKernelLogs=yes
47ProtectControlGroups=yes
48ProtectClock=yes
49ProtectHostname=yes
50KeyringMode=private
51SystemCallArchitectures=native
52SystemCallFilter=@system-service
53SystemCallFilter=~@privileged @resources
54SystemCallErrorNumber=EPERM
55MemoryMax=128M
56TasksMax=8