opnsense-ports/devel/electron32/files/patch-electron_spec_node-spec.ts
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

11 lines
743 B
TypeScript

--- electron/spec/node-spec.ts.orig 2024-05-15 08:18:48 UTC
+++ electron/spec/node-spec.ts
@@ -145,7 +145,7 @@ describe('node feature', () => {
});
describe('child_process.exec', () => {
- ifit(process.platform === 'linux')('allows executing a setuid binary from non-sandboxed renderer', async () => {
+ ifit(process.platform === 'linux' || process.platform === 'freebsd')('allows executing a setuid binary from non-sandboxed renderer', async () => {
// Chrome uses prctl(2) to set the NO_NEW_PRIVILEGES flag on Linux (see
// https://github.com/torvalds/linux/blob/40fde647cc/Documentation/userspace-api/no_new_privs.rst).
// We disable this for unsandboxed processes, which the renderer tests