mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
* fix(fs): allow open, seek and fstat in the write permission sets The stream path of writeFile calls `open`, which only the nested command list of `allow-write-file` granted (plugins/fs/permissions/write-all.toml, write-files.toml), so `fs:allow-appdata-write-recursive` and the other write sets rejected streamed writes; seek/fstat were missing for FileHandles created under these sets. Adds open, seek and fstat to write-all and write-files. This widens the write sets slightly (open is already implied by allow-write-file); the generated reference does not list set members, so nothing to regenerate. * use dependencies instead
18 lines
386 B
TOML
18 lines
386 B
TOML
"$schema" = "schemas/schema.json"
|
|
|
|
[[set]]
|
|
identifier = "write-all"
|
|
description = "This enables all write related commands without any pre-configured accessible paths."
|
|
permissions = [
|
|
"allow-mkdir",
|
|
"allow-create",
|
|
"allow-copy-file",
|
|
"allow-remove",
|
|
"allow-rename",
|
|
"allow-truncate",
|
|
"allow-ftruncate",
|
|
"allow-write",
|
|
"allow-write-file",
|
|
"allow-write-text-file",
|
|
]
|