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

Function checkFFIPermission

lib/ffi.js:154–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154function checkFFIPermission() {
155 if (!permission.isEnabled()) {
156 return;
157 }
158
159 if (permission.has('ffi') || permission.isAuditMode()) {
160 return;
161 }
162
163 throw new ERR_ACCESS_DENIED(
164 'Access to this API has been restricted. Use --allow-ffi to manage permissions.',
165 'FFI');
166}
167
168function dlopen(path, definitions) {
169 checkFFIPermission();

Callers 7

dlopenFunction · 0.85
dlcloseFunction · 0.85
dlsymFunction · 0.85
exportStringFunction · 0.85
exportBufferFunction · 0.85
exportArrayBufferFunction · 0.85
exportArrayBufferViewFunction · 0.85

Calls 2

isEnabledMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…