MCPcopy Index your code
hub / github.com/nodejs/node / inFreeBSDJail

Function inFreeBSDJail

test/common/index.js:1049–1060  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1047 },
1048
1049 get inFreeBSDJail() {
1050 const { execSync } = require('child_process');
1051 if (inFreeBSDJail !== null) return inFreeBSDJail;
1052
1053 if (exports.isFreeBSD &&
1054 execSync('sysctl -n security.jail.jailed').toString() === '1\n') {
1055 inFreeBSDJail = true;
1056 } else {
1057 inFreeBSDJail = false;
1058 }
1059 return inFreeBSDJail;
1060 },
1061
1062 // On IBMi, process.platform and os.platform() both return 'aix',
1063 // when built with Python versions earlier than 3.9.

Callers

nothing calls this directly

Calls 3

execSyncFunction · 0.85
requireFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…