mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 08:24:46 +00:00
* fix(desktop): preserve Linux sandboxing wherever the host allows it Chromium checks its Linux sandbox before main.js, while package installation probes run as root and miss AppArmor restrictions on desktop users. Choose the launch flags before exec and always install the SUID alternative for native packages. Test published artifacts as an ordinary user with namespaces both denied and allowed; never repair permissions in the smoke harness. * fix(desktop): retain the Linux release build baseline * fix(ci): allow canceled desktop smoke uploads to stop * test(desktop): verify the installed RPM sandbox under AppArmor * fix(ci): resolve packaged desktop dependencies before installation * chore(desktop): keep QA evidence out of the repository
26 lines
760 B
TypeScript
26 lines
760 B
TypeScript
import { expect, it } from "vitest";
|
|
import { describeSandbox } from "./sandbox";
|
|
|
|
it("reports a portable fallback independently of the renderer's Node isolation setting", () => {
|
|
expect(
|
|
describeSandbox({
|
|
disabled: true,
|
|
launcherReason: "user namespaces unavailable; no usable SUID helper",
|
|
}),
|
|
).toEqual({
|
|
enabled: false,
|
|
reason: "user namespaces unavailable; no usable SUID helper",
|
|
});
|
|
});
|
|
|
|
it("reports enabled defaults and explicit overrides without a packaged launcher", () => {
|
|
expect(describeSandbox({ disabled: false })).toEqual({
|
|
enabled: true,
|
|
reason: "Chromium default",
|
|
});
|
|
expect(describeSandbox({ disabled: true })).toEqual({
|
|
enabled: false,
|
|
reason: "requested by --no-sandbox",
|
|
});
|
|
});
|