/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/run/sqlite_attach_limit_perms/setup.js
14 строк
544 B
Bartek Iwańczuk
fix(ext/node_sqlite): keep attach limit capped under scoped permissions (#35232)
29 июн 2026, 15:12
Не верифицирован
29 июн 2026, 15:12
38e00aa
Код
Авторство
О чём код?
// Creates the fixture used by probe.js: an "allowed" directory the probe may // touch, and a "denied" directory holding a SQLite database the probe must not // be able to reach. Run with -A only to build the fixture. import { DatabaseSync } from "node:sqlite"; Deno.mkdirSync("allowed", { recursive: true }); Deno.mkdirSync("denied", { recursive: true }); const db = new DatabaseSync("denied/secret.db"); db.exec("CREATE TABLE secrets(v TEXT)"); db.exec("INSERT INTO secrets VALUES ('DENIED_SECRET')"); db.close(); console.log("setup-ok");