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
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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user