()
| 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. |