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