WEFT_OS/crates/weft-runtime
Marco Allegretti cb4e50b78c
fix(runtime): bound the clipboard and notification helpers, and attribute notifications
The clipboard and notification imports ran wl-paste, wl-copy and
notify-send with no deadline and no size limits, and took the clipboard
text whole. A notification's icon could be any path or URL, and nothing
said which app sent it, so an app could pass one off as the system's.

Each helper now runs with a 5-second deadline, after which it is killed
and the call fails. Clipboard text is at most 1 MiB in either direction.
A notification's title is at most 256 bytes and its body 4096, its icon
must be an icon theme name, and it is sent with the app's ID as the
application name.

Unit tests run real processes for the deadline, the output limit, input
passing and failure reporting, and check the notification bounds.
check_grants.py still passes.
2026-10-09 19:26:47 +00:00
..
src fix(runtime): bound the clipboard and notification helpers, and attribute notifications 2026-10-09 19:26:47 +00:00
wit fix(runtime): close fetch and preopen gaps in grant enforcement 2026-10-09 08:25:40 +00:00
Cargo.toml fix(runtime): enforce effective capability grants per session 2026-10-09 08:08:58 +00:00