Remove restrictive systemd security settings across multiple services and add ProtectSystem=no for SQLite WAL mode compatibility
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled

- Remove ProtectSystem=strict and ReadWritePaths from agent-daemon, gpu, learning, marketplace, modality-optimization, monitor, multimodal, and openclaw services
- Add ProtectSystem=no to coordinator-api, exchange-api, and explorer services to allow database writes for SQLite WAL mode
- Retain NoNewPrivileges and ProtectHome security settings across all services
This commit is contained in:
aitbc
2026-04-15 08:54:38 +02:00
parent 984a5f7c9a
commit faf1ca996c
11 changed files with 9 additions and 16 deletions

View File

@@ -29,9 +29,7 @@ StandardError=journal
# Security settings # Security settings
NoNewPrivileges=true NoNewPrivileges=true
PrivateTmp=true PrivateTmp=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/var/lib/aitbc/data /var/lib/aitbc/keystore
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -14,5 +14,8 @@ RestartSec=5
StandardOutput=journal StandardOutput=journal
StandardError=journal StandardError=journal
# Allow database writes for SQLite WAL mode
ProtectSystem=no
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -16,5 +16,8 @@ StandardOutput=journal
StandardError=journal StandardError=journal
SyslogIdentifier=aitbc-exchange-api SyslogIdentifier=aitbc-exchange-api
# Allow database writes for SQLite WAL mode
ProtectSystem=no
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -15,5 +15,8 @@ StandardOutput=journal
StandardError=journal StandardError=journal
SyslogIdentifier=aitbc-explorer SyslogIdentifier=aitbc-explorer
# Allow database writes for SQLite WAL mode
ProtectSystem=no
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -32,9 +32,7 @@ SyslogIdentifier=aitbc-marketplace
# Production security # Production security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/var/lib/aitbc/data/marketplace /var/log/aitbc/marketplace
# Production performance # Production performance
LimitNOFILE=65536 LimitNOFILE=65536

View File

@@ -24,9 +24,7 @@ SyslogIdentifier=aitbc-adaptive-learning
# Security # Security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/home/oib/aitbc/apps/coordinator-api
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -34,9 +34,7 @@ SyslogIdentifier=aitbc-marketplace-production
# Production security # Production security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/var/lib/aitbc/data/marketplace /var/log/aitbc/production/marketplace
# Production performance # Production performance
LimitNOFILE=65536 LimitNOFILE=65536

View File

@@ -25,9 +25,7 @@ SyslogIdentifier=aitbc-modality-optimization
# Security # Security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/opt/aitbc/apps/coordinator-api /opt/aitbc/venv
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -26,9 +26,7 @@ SyslogIdentifier=aitbc-monitor
# Production security # Production security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/var/lib/aitbc/data /var/log/aitbc
# Production performance # Production performance
LimitNOFILE=65536 LimitNOFILE=65536

View File

@@ -25,9 +25,7 @@ SyslogIdentifier=aitbc-multimodal
# Security # Security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/opt/aitbc/apps/coordinator-api /opt/aitbc/venv
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -25,9 +25,7 @@ SyslogIdentifier=aitbc-openclaw-enhanced
# Security # Security
NoNewPrivileges=true NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true ProtectHome=true
ReadWritePaths=/opt/aitbc/apps/coordinator-api /opt/aitbc/venv
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target