Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(security): keep macOS installer fully parseable

Rahman954f410866fc
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index d23e35c5..9c720783 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -8,6 +8,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `security` keep macOS installer fully parseable
- `browser` route Camoufox websocket through viewer namespace
- `browser` isolate Camoufox viewer cache
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index aab2f719..1077b767 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,3 +1,12 @@
+## 2026-09-19 — Keep strict Semgrep coverage complete on the macOS installer
+
+Hosted Semgrep reported zero findings but exited 3 under `--strict` because its Bash parser
+partially parsed the heredoc nested inside `persist_path` in `scripts/install-macos.sh`. The
+installer now emits the exact same shell-profile block with literal `printf` arguments instead
+of that heredoc. `--strict` and `--error` remain enabled, the public dispatcher checksum is
+updated, `bash -n` stays clean and platform/install regressions pass. This fixes parser coverage
+rather than suppressing or downgrading the security scanner.
+
## 2026-09-18 — Include the remaining reviewed public asset variants
The first exact-main run of the path-scoped validator correctly failed because the live
diff --git a/scripts/install-macos.sh b/scripts/install-macos.sh
index d27c89ad..d04115eb 100644
--- a/scripts/install-macos.sh
+++ b/scripts/install-macos.sh
@@ -56,15 +56,14 @@ persist_path() {
local rc="$1"
touch "$rc"
grep -Fq '# >>> mso cli >>>' "$rc" 2>/dev/null && return
- cat >> "$rc" <<'EOF_PATH'
-
-# >>> mso cli >>>
-case ":$PATH:" in
- *":$HOME/.local/bin:"*) ;;
- *) export PATH="$HOME/.local/bin:$PATH" ;;
-esac
-# <<< mso cli <<<
-EOF_PATH
+ printf '%s\n' \
+ '' \
+ '# >>> mso cli >>>' \
+ 'case ":$PATH:" in' \
+ ' *":$HOME/.local/bin:"*) ;;' \
+ ' *) export PATH="$HOME/.local/bin:$PATH" ;;' \
+ 'esac' \
+ '# <<< mso cli <<<' >> "$rc"
}
persist_path "$HOME/.zprofile"
persist_path "$HOME/.bash_profile"
diff --git a/scripts/install.sh b/scripts/install.sh
index dd41dedd..d6a6e233 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -13,7 +13,7 @@ RAW_BASE="${MSO_INSTALL_RAW_BASE:-https://raw.githubusercontent.com/rahmanef63/m
CORE_URL="${MSO_INSTALL_CORE_URL:-https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/install-core.sh}"
CORE_SHA256="c2b5685734c9474c56b8d4a20cde3d4d4e9e1cfa0209744c4e3b337590a27144"
CORE_EOF='# MSO_INSTALLER_CORE_EOF'
-MACOS_SHA256="c0d71002cba03b2fe06821e2327c08e15f69e707b060bac6eee050e139c93b96"
+MACOS_SHA256="668ec3c8bbf3ee36dc2ae70952c3ba43c6f73ebc3acd6956fa4be2f65a076bfe"
TERMUX_SHA256="27c1a7d558c51ec875d17fd4a02a49e9e309eeb57fb306f62ea8de890ae2e65d"
TMP_INSTALLER=''
TMP_PLATFORM=''