Skip to content

Latest commit

 

History

History
540 lines (487 loc) · 47.2 KB

NEWS.md

File metadata and controls

540 lines (487 loc) · 47.2 KB

Dev

Notable Improvements

  • --expose or --file-forwarding will not ask for permission again if approved previously.
  • PID 1 now fails loudly when something horribly happens
  • It is now not possible for application to overwrite certain control group interfaces
  • Portable now requires user consent to use static permissions, see blog post for more detail: https://blog.kimiblock.top/2026/09/30/dynamic-versus-static/
  • The Display Name property has been removed in Portable 22. Portable now retrieves localised Name property in applications' desktop file.
  • When running inside a console, window title will be dynamically updated to prevent mis-identification between sandboxes.
  • Offloaded formatting to a dedicated logging thread. Portable starts up faster.
  • Rewritten the GPU subsystem to make it more efficient
  • Removed several duplicated systemd properties to speed up their startup
  • thread-safe libudev is not required anymore
  • Portable now terminates correctly when receiving a SIGTERM or SIGINT signal
  • Fixed invalid symbolic links under /sys/class/drm
  • Denied system calls would no longer spam journal
  • Removed unotify from Init to gain higher performance under load and stop journal spam introduced by problematic applications. For debugging purposes, please use ausearch -m SECCOMP -i instead.
  • The /etc directory is now isolated from the system
  • Portable is now internationalised. Some UI elements may've already been translated to your locale, while others are in progress.

20.2

Notable Improvements

  • The MainPID property will now be set to Init, and sandboxed processes will no longer be able to update systemd unit status
  • Init will not crash if shutdown request fails
  • The --revoke-permissions switch will now handle ScreenShot, Location and Notifications permission
  • Worked around an NVIDIA bug causing some GLX applications (Steam's login UI, for example) failing to create a dri3 screen, resulting in bad performance

Internal Changes

  • xcursor: support the CURSOR_SIZE property by @Kimiblock in Kraftland#1295
  • forward: add XCURSOR_* to the list by @Kimiblock in Kraftland#1296
  • update main process for systemd by @Kimiblock in Kraftland#1298
  • ibus: allow receiving InputContext updates by @Kimiblock in Kraftland#1299
  • ipc: implement the PermissionStore.list method by @Kimiblock in Kraftland#1300
  • permission store: disable blocking APIs by @Kimiblock in Kraftland#1301
  • permission store: define Permission Type for ScreenShot by @Kimiblock in Kraftland#1302
  • permission store: implement the location permission by @Kimiblock in Kraftland#1303
  • update Init by @Kimiblock in Kraftland#1304
  • permission store: implement the notifications permission by @Kimiblock in Kraftland#1305
  • permission store: implement reset by @Kimiblock in Kraftland#1306
  • feat: support permission revoke for Location, ScreenShot and Notifications by @Kimiblock in Kraftland#1307
  • session: allow pinging the iBus Portal (but not GetXXX) by @Kimiblock in Kraftland#1308
  • session: allow introspecting the desktop portal by @Kimiblock in Kraftland#1309
  • Warn about Packer compat by @Kimiblock in Kraftland#1310
  • gpu: warn about deprecated boot_vga property by @Kimiblock in Kraftland#1311
  • hybrid: re-allow GLX envs to be passed by @Kimiblock in Kraftland#1315
  • x11: be clear about authority failures by @Kimiblock in Kraftland#1316

20.1

Notable Improvements

  • Chromium-based application will now work with full lockdown hardening with their internal sandbox.
  • Fixed a bug causing Portable to not recognise wp_security_context_manager_v1 on KWin and Niri
  • XCURSOR_THEME is now set accordingly for legacy applications not utilising the cursor shape protocol
  • Fixed warnings regarding empty lines in portable.env

Internal Changes

Daemon

Init

20.0

Portable Neoteny is our latest release for a fast, private and modern Linux desktop sandbox.

Under the hood, a rewrite allows us to make new advancements, both in elegancy and performance. SECCOMP handling has also been reworked, including dedicated-thread support for unotify and better handling of non-native system calls. Those calls now terminate the offending thread instead of quietly returning ENOSYS.

There’s also a pile of fixes around process spawning, initialization, channels, PTYs, and long-running sessions. Init is less likely to get stuck after running for days, panics are handled properly, and secondary instances should no longer hang when they hit prohibited system calls. Starting the primary and secondary instances together is more reliable too, even when Init is slow to start.

TUI applications would also receive a major quality of life improvement. Console is now handled inside Portable via a unified way, fixing inappropriate ioctls for bash while allowing other shell programs like fish to operate normally. The terminal will now adjust it's size at real time, following your input precisely. There is no more distinctive "defects" on secondary instances. And Portable will now allocate pesudo-terminals on demand.

Security continues to be our top-priority. Portable now supports the Wayland Security Context V1 protocol for compositors to limit privileged protocols from sandboxed applications. In addition to Wayland side of improvements, the D-Bus IPC access has also been tightened up. D-Bus proxies now have even more limited access to the host, and session bus would no longer allow querying peer information for the vast majority of services.

If you are using a supported desktop environment, Portable will now display background status of applications. This allows you to see running instances at a glance.

This release is dedicated to our puppet, may he rest in the heavenly world.

Breaking Changes:

  • Removed deprecated configuration fields, including privacy.camera, privacy.input, system.gameMode and system.virtualization. Please migrate to the unified device allow array. #1034
  • Removed toggle for process tracking, it is now always enabled. #1034
  • Default configuration changes. #1035
    • KDE status indicator -> false
    • Classic Notifications -> false
    • Network -> false

Notable non-breaking changes:

  • Display protocol:
    • The native display protocol will always be enabled
    • Wayland socket is now mounted at /run/wayland
  • The lockdown section can now be controlled in a fine-grained fashion.
  • The primary GPU is now determined with boot display attribute value, rather than connector status. Allowing multi-GPU multi-head system to operate optimally (#1072)
  • The machine-id used to reliably identify users has been randomised per-sandbox. Moreover, most D-Bus endpoints are locked down to avoid obtaining the true host ID, with the exception of Fcitx Portal.

Improvements:

  • Implemented overlay execution for D-Bus activation
  • Made seccomp filter compilation asynchronous to avoid blocking
  • Made seccomp unotify run in an exclusive thread
  • Made seccomp list compiling run in a blocking thread to improve performance on single-core systems
  • Made uclamp writing run in a blocking thread to improve performance
  • Removed deprecated logic in process spawner to improve performance
  • Fixed a possible situation where init may panic but continue running
  • Properly handled channel send error in spawner
  • Properly handled OpenPty errors
  • The io_uring_setup system call is now allowed
  • It is now less likely for Init to be stuck when running for a few days
  • Non-native system calls will now cause the thread to be killed, rather than returning ENOSYS silently.
  • The D-Bus proxy has been more properly restricted from other local processes.
  • Portal responses has been locked down more appropriately.
  • Fixed an issue with D-Bus filtering where legacy notification action would not trigger anything.
  • The PulseAudio server is being parsed rather than assuming default path
  • The PulseAudio server is activated before starting sandbox
  • Portable now utilises the wp-security-context-v1 protocol to provide a secure way of window identification
  • Secondary instances are now streaming to the console via PTY, and will automatically re-scale their terminal size
  • It is now possible to disable certain components of Portable by subsystem.
  • Fixed a bug causing secondary instances to stuck while calling prohibited system calls.
  • Each instance now has a new session. Console is given as controlling terminal. Fixes various shell implementations not launching.
  • When starting the Primary and secondary instance at once, it is now much less likely to drop AuxStart message due to Init starting slow.
  • Warns about outdated version of Init
  • When starting Portable without a valid terminal, it will no longer allocate new pairs of pesudo-terminal
  • When using a supported desktop environment, Portable will display the sandbox status in Background Apps area.
  • The inappropriate ioctl error has been fixed and other shells like fish is now able to run without issue. Furthermore, you should now see TUI applications more "compliant" regarding input handling.
  • Sandboxed session bus cannot speculate host process via D-Bus. Obtaining information regarding the remote service (such as Machine ID, PID, credentials) are now prevented, except for Fcitx input portal that awaits more documentation.
  • UnifiedPush support has been more locked down.
  • Portable now operates faster due to LTO usage.

Internal Changes

20.0

Daemon

20.rc

Daemon

  • workflow: explicitly build debug / release version by @Kimiblock in Kraftland#1269
  • example config: fix parsing by @Kimiblock in Kraftland#1270
  • logger: don't print error on terminal status by @Kimiblock in Kraftland#1271
  • migrate logger configuration discovery to a separate module by @Kimiblock in Kraftland#1272

Init

20.beta.4

Daemon

  • start_transient: disable core dumping unless debug mode is enabled by @Kimiblock in Kraftland#1262
  • don't manually bind /dev/input by @Kimiblock in Kraftland#1263
  • separate seccomp whitelist and landlock by @Kimiblock in Kraftland#1264
  • console: initialise pty dimentions on startup by @Kimiblock in Kraftland#1265
  • overlay-usr: mount lspci as true by @Kimiblock in Kraftland#1266
  • feat: private per-app machine-id by @Kimiblock in Kraftland#1267

Init

20.beta.3

Daemon

Init

20.beta.2

Daemon

  • main: remove the consts module and read version from env! macro by @Kimiblock in Kraftland#1246
  • envs: skip lines starting with hashtag by @Kimiblock in Kraftland#1247
  • logger: revert debug assertions by @Kimiblock in Kraftland#1248

20.beta

Daemon

  • ipc: fix file passthrough by @Kimiblock in Kraftland#1227
  • system subsystem: separate binary overlay binding by @Kimiblock in Kraftland#1228
  • bin: error out if overlay is missing by @Kimiblock in Kraftland#1229
  • Documents Portal: properly sandbox methods and interfaces by @Kimiblock in Kraftland#1230
  • session bus: harden AppMenu Registrar service by @Kimiblock in Kraftland#1231
  • a11y: disable the SEE policy for a11y service by @Kimiblock in Kraftland#1232
  • session: drop SEE and TALK policy, add UP support (once again) by @Kimiblock in Kraftland#1233
  • config: remove the version directive by @Kimiblock in Kraftland#1234
  • gpu: handle other boot_display values by @Kimiblock in Kraftland#1236
  • session bus: fix notification portal action invocation by @Kimiblock in Kraftland#1237
  • forward: forward QT_* variables by @Kimiblock in Kraftland#1239
  • cargo: enable LTO in release builds by @Kimiblock in Kraftland#1240
  • unbust terminal resize stream by @Kimiblock in Kraftland#1241
  • forward: pass through TERM variable by @Kimiblock in Kraftland#1242
  • config: rename fields per new configuration by @Kimiblock in Kraftland#1235
  • envs: port over the user environment overriding subsystem by @Kimiblock in Kraftland#1243
  • forward: remove QT related vars by @Kimiblock in Kraftland#1244

Init

20.alpha

Daemon

Full Changelog: https://github.com/Kraftland/portable/compare/18.0.1...20.alpha

Legacy configuration deserialiser

Init

Full Changelog: https://github.com/Kraftland/portable-init/compare/18.0...20.alpha

18.0 - Lawn

This release of Portable brings a prominent rewrite of the sandbox supervisor system, includes XDG activation protocol support, greatly reduces installed files, and much more. It sets a new bar for a secure and performant sandbox.

The new supervisor is carefully and thoughtfully engineered. It represents our vision for the future of sandboxing. It is responsive while feature-packed. In addition to existing security model from the Go version, we also introduced better system call filtering with allow-listing and custom return values for a smaller attack surface and better concealment of secure execution environment to malicious applications. The default error has also been changed from Permision Denied to ENOSYS, which represents that kernel lacks support for said system call, allowing well-behaved applications to fall back gracefully.

Among a set of security features, there're also several quality of life changes for the Init and daemon. When launching multiple instances, Portable now streams the entire console rather than standard input, output and error, providing better integration and navigation for terminal applications. The supervisor will now reclaim expired files to avoid cluttering up shared directory, as well as offloading argument calculation to the daemon. The logging infrastructure has also been reworked to feature coloured output.

With all those new features, the average lifetime of supervisor went from 5.9 milliseconds to 5.4 milliseconds, bringing this release in line with the commitment of a fast, private, secure sandbox, for the Linux desktop.

18.rc

Init

18.beta

Daemon

  • introduce NEWS entry by @Kimiblock in Kraftland#1018
  • next: remove advanced.landlock config key by @Kimiblock in Kraftland#1019
  • multi-instance: disable append mode because extra arguments apply whi… by @Kimiblock in Kraftland#1022
  • build(deps): bump golang.org/x/sys from 0.46.0 to 0.47.0 in /lib/daemon by @dependabot[bot] in Kraftland#1021
  • init: bump to latest commit by @Kimiblock in Kraftland#1023

Init:

18.alpha

Daemon

Changes from Init

Full Changelog: https://github.com/Kraftland/portable-init/commits/18.0.alpha.2