Bind isolated test checkout read-only inside private tmp namespace
This commit is contained in:
@@ -42,6 +42,7 @@ PY
|
|||||||
unit="archy-isolated-tests-$(date +%s)-$$"
|
unit="archy-isolated-tests-$(date +%s)-$$"
|
||||||
sudo -n systemd-run --unit="$unit" --wait --pipe --collect \
|
sudo -n systemd-run --unit="$unit" --wait --pipe --collect \
|
||||||
--property="WorkingDirectory=$REPO/core" \
|
--property="WorkingDirectory=$REPO/core" \
|
||||||
|
--property="BindReadOnlyPaths=$REPO" \
|
||||||
--property=PrivateNetwork=yes --property=PrivateTmp=yes --property=PrivateDevices=yes \
|
--property=PrivateNetwork=yes --property=PrivateTmp=yes --property=PrivateDevices=yes \
|
||||||
--property=ProtectSystem=strict --property=ProtectHome=read-only \
|
--property=ProtectSystem=strict --property=ProtectHome=read-only \
|
||||||
--property=NoNewPrivileges=yes \
|
--property=NoNewPrivileges=yes \
|
||||||
|
|||||||
Reference in New Issue
Block a user