Pulse/scripts
rcourtman c2f6848006 Keep Docker-in-LXC working when commands are enabled after install
lxc-attach into an unprivileged guest writes /proc/<pid>/uid_map, which
needs CAP_SETUID in the parent user namespace. NoNewPrivileges drops
CAP_SETUID from the effective set and also stops lxc-attach falling back
to the setuid newuidmap/newgidmap helpers, so the socket probe dies with
"write_id_mapping: 61 Operation not permitted".

install.sh already relaxed NoNewPrivileges for this, but only when the
agent was installed with --enable-commands. Command execution is also
togglable from the server afterwards: applyRemoteConfig starts the
command client without rewriting the unit. An agent installed without
the flag and switched on later therefore ends up able to run commands
and unable to attach to unprivileged guests, so Docker inside every
unprivileged LXC disappears from the Proxmox page. The probe failure is
logged at debug level and retried on every poll, so the surface looks
empty rather than broken while the agent re-probes the whole guest list.

Grant CAP_SETUID/CAP_SETGID to any PVE agent rather than gating on the
install-time flag, so the later toggle lands on a unit that can attach.
Ambient capabilities restore exactly the privilege lxc-attach needs and
leave the rest of the sandbox intact; the existing install-time
relaxation is unchanged.

Verified on a live PVE node. With the hardened unit the probe succeeded
only on the three privileged guests and failed on every unprivileged
one. After the ambient grant CapEff regained CAP_SETUID and both
unprivileged Docker guests were discovered, taking that node from one
Docker LXC to three.
2026-08-20 11:05:39 +01:00
..
dev
eval
installtests Keep Docker-in-LXC working when commands are enabled after install 2026-08-20 11:05:39 +01:00
intelligence_lab Document RG-06 autonomy proof runner 2026-07-13 18:32:56 +01:00
lib backend and governance: MCP contract, agent capabilities, API, and release-control 2026-06-23 17:26:15 +01:00
lint-fixer
release_control Simplify and harden verified Patrol receipts 2026-08-15 10:25:04 +01:00
tests feat: scale the Proxmox demo estate 2026-08-19 16:28:07 +01:00
.go-version Modernize Unified Agent lifecycle and platform support 2026-07-09 23:20:35 +01:00
audit-private-boundary.sh Ratchet private boundary audit debt 2026-07-29 20:09:23 +01:00
backfill-release-assets.sh
build-release.sh fix(release): restore verifiable MSP evaluation delivery 2026-08-08 01:04:07 +01:00
bundle.manifest
bundle.sh
check-bench-regression.sh
check-workflow-dispatch-inputs.py
check_public_docs.py docs: refresh public repository surface 2026-08-06 01:00:41 +01:00
check_telemetry_schema_parity.py Add privacy-safe telemetry lifecycle and outcome signals 2026-07-23 01:10:38 +01:00
clean-mock-alerts.sh
cleanup.sh
cloud-backup.sh
com.pulse.hot-dev.plist.template
conformance-smoke.sh
demo_public_browser_smoke.cjs
dev-check.sh Switch script-reference integrity test from rg to git grep for portable CI 2026-05-12 00:30:43 +01:00
dev-deploy-agent.sh
dev-launchd-setup.sh
dev-launchd-wrapper.sh
dev-prepush.sh Parallelize Build and Test and add a local pre-push check 2026-07-29 14:32:01 +01:00
docker-build.sh
ensure_test_assets.sh
exclusive-lock.mjs
generate-pulse-intelligence-docs.go backend and governance: MCP contract, agent capabilities, API, and release-control 2026-06-23 17:26:15 +01:00
generate-release-notes.sh fix(release): show categorized changelog after updates 2026-08-11 16:02:40 +01:00
generate-self-hosted-feature-catalog.go Format generated self-hosted feature catalog with prettier in the generator 2026-07-27 11:58:05 +01:00
generate-types.go feat(assistant): mid-turn steering of the running response 2026-07-12 23:01:40 +01:00
hot-dev-bg.sh backend and governance: MCP contract, agent capabilities, API, and release-control 2026-06-23 17:26:15 +01:00
hot-dev.sh Build canonical Patrol attention workbench 2026-07-19 15:11:01 +01:00
install-container-agent.sh Restore Docker agents to Hosts inventory 2026-07-23 22:06:56 +01:00
install-docker.sh Prepare v6.3.0-rc.3 release 2026-08-18 22:36:10 +01:00
install-go-toolchain.sh Modernize Unified Agent lifecycle and platform support 2026-07-09 23:20:35 +01:00
install-mcp.ps1 Stop install-mcp scripts from linking to GitHub blob/main docs 2026-05-11 23:58:45 +01:00
install-mcp.sh Stop install-mcp scripts from linking to GitHub blob/main docs 2026-05-11 23:58:45 +01:00
install.ps1 Run the Windows installer TLS callback off a compiled type 2026-08-02 13:12:17 +01:00
install.sh Keep Docker-in-LXC working when commands are enabled after install 2026-08-20 11:05:39 +01:00
package-helm-chart.sh
patrol_e2e_matrix.sh
pulse-auto-update.sh Fix auto-update leaving service down after installer failure 2026-07-27 09:38:37 +01:00
release-preflight-worker.sh Keep release race builds off WSL tmpfs 2026-08-12 17:56:11 +01:00
release_asset_common.sh
release_candidate_manifest.py Build releases once and promote verified candidates 2026-07-09 22:21:34 +01:00
release_ldflags.sh
release_update_key.go
remerge-parallel.sh
render_installers.go
repo-boundary-paid-surface.allowlist Fix companion compatibility CI 2026-07-29 20:09:23 +01:00
repo-boundary-private-implementation.baseline Ratchet private boundary audit debt 2026-07-29 20:09:23 +01:00
run-release-preflight.sh Accelerate release qualification with exact-SHA worker 2026-08-12 17:07:12 +01:00
run_cloud_public_signup_smoke.sh
run_demo_public_browser_smoke.sh
run_hosted_staging_smoke.sh
security_review_auth_credentials.sh docs: add focused security review packet 2026-08-16 17:13:02 +01:00
session-handoff.sh
standalone.manifest Prepare v6.2.0-rc.4 release 2026-07-29 14:49:51 +01:00
sync-production-config.sh
sync_chart_release_metadata.py
telemetry_adoption_report.py fix telemetry release activity attribution 2026-08-19 15:47:53 +01:00
test-vm-disk.sh
toggle-mock.sh feat: scale the Proxmox demo estate 2026-08-19 16:28:07 +01:00
trigger-release-dry-run.sh Accelerate release qualification with exact-SHA worker 2026-08-12 17:07:12 +01:00
trigger-release.sh Accelerate release qualification with exact-SHA worker 2026-08-12 17:07:12 +01:00
trigger-stable-patch.sh Fix stable patch workflow dispatch input types 2026-07-23 13:31:31 +01:00
uninstall-sensor-proxy.sh fix(security): verify SSH hosts during proxy cleanup 2026-08-08 05:18:55 +01:00
validate-published-release.sh
validate-release.sh fix(release): restore verifiable MSP evaluation delivery 2026-08-08 01:04:07 +01:00