1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-08 12:59:17 -04:00
ports/devel/electron22/files/patch-electron_spec_node-spec.ts

11 lines
743 B
TypeScript

--- electron/spec/node-spec.ts.orig 2023-01-24 16:58:16 UTC
+++ electron/spec/node-spec.ts
@@ -138,7 +138,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