Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
f094fef
wip: sandboxing
aecsocket Sep 22, 2026
6894851
wip: sandbox instances in the launcher
aecsocket Sep 23, 2026
34c39d5
fix up classpath in sandbox
aecsocket Sep 23, 2026
d202849
use OsString, remove unneeded sandbox params, more docs
aecsocket Sep 23, 2026
44c60f6
add instance data persistent dir
aecsocket Sep 23, 2026
77ca752
Bubblewrap progress
Moulberry Sep 24, 2026
3ce9f6f
move IO operations into spawn(), error handling
aecsocket Sep 24, 2026
5b5ae88
start on flatpak-spawn impl
aecsocket Sep 24, 2026
2c0bc2b
wip: flatpak-spawn portal impl
aecsocket Sep 24, 2026
26a43d3
Add seccomp filtering
Moulberry Sep 25, 2026
46ffe11
Fix race condition by waiting for xdg-dbus-proxy to start
Moulberry Sep 25, 2026
a31ac59
Properly set up bwrapinfo.json file on the host, with randomly genera…
Moulberry Sep 25, 2026
088e70b
Automatically clean up runtime files when BubblewrapSandboxChild is d…
Moulberry Sep 25, 2026
f3a78ed
Reintroduce stdio (unix only)
Moulberry Sep 25, 2026
ff8d91a
revert SDL_VIDEO_DRIVER=wayland testing
Moulberry Sep 25, 2026
ddd43a3
wip: more flatpak work, reorg top-level sandbox items
aecsocket Sep 25, 2026
8cc6555
rework sandboxchild, work on flatpak impl
aecsocket Sep 25, 2026
d8b311a
flatpak impl works
aecsocket Sep 25, 2026
f015436
reorganize and more docs
aecsocket Sep 25, 2026
57887d3
wip: ffi
aecsocket Sep 25, 2026
e8dad10
wip: macos sandbox
aecsocket Sep 25, 2026
81904d1
Broken windows sandboxing
Moulberry Sep 26, 2026
e960033
AppContainers working (just need to do self elevate)
Moulberry Sep 26, 2026
c76e5c8
linux sandbox compiles again
aecsocket Sep 25, 2026
3761171
expose sticky bit on tmp dir, pulse socket
aecsocket Sep 28, 2026
871b57f
macos sandbox launches
aecsocket Sep 28, 2026
b301ad5
fix linux compile
aecsocket Sep 28, 2026
3814dd4
fix macOS temp dir and hsperfdata handling
aecsocket Sep 28, 2026
2e562fe
wip: FFI progress
aecsocket Sep 29, 2026
7352cc0
Windows elevated callback
Moulberry Sep 30, 2026
6728b6d
Merge remote-tracking branch 'origin/boris/sandbox' into boris/sandbox
Moulberry Sep 30, 2026
0266aee
Fix compilation on macos
Moulberry Sep 30, 2026
5661134
Fix windows compilation issues
Moulberry Sep 30, 2026
ca6259a
Add firewall to windows feature flags
Moulberry Sep 30, 2026
924662d
More Windows compilation fixes
Moulberry Sep 30, 2026
6cde811
Fix compile error with collecting args
Moulberry Sep 30, 2026
4a78f27
Implemented kill for windows process
Moulberry Sep 30, 2026
ffc7526
More Windows compile fixes
Moulberry Sep 30, 2026
696f3d8
Fix windows compile errors in app-lib
Moulberry Sep 30, 2026
272af86
Windows: Use proc thread attributes for handle list and job list
Moulberry Oct 1, 2026
cd0572c
Add missing imports for Windows changes
Moulberry Oct 1, 2026
1e4d9ff
fix up compile and elevation
aecsocket Oct 2, 2026
f1ea7a7
fix rustdoc
aecsocket Oct 2, 2026
222f8d6
fix up app-lib
aecsocket Oct 2, 2026
1467831
fix: macos sandbox settings arg
IMB11 Oct 2, 2026
6e69614
improve FFI bindings
aecsocket Oct 6, 2026
fc428e8
set up cbindgen and C run example
aecsocket Oct 6, 2026
1d65cc2
create `NoSandbox` for interop
aecsocket Oct 6, 2026
0a3e0c4
rename child stdin/out/err fields in C FFI
aecsocket Oct 8, 2026
9f4bc66
update string FFI
aecsocket Oct 8, 2026
9faaa9b
make get_last_error char*
aecsocket Oct 9, 2026
d81ba59
expose helper commands to C FFI
aecsocket Oct 12, 2026
3582fb7
make windows backend async
aecsocket Oct 14, 2026
5d23c3d
unix cancel-safe waiting
aecsocket Oct 14, 2026
5bb2921
delete useless test
aecsocket Oct 14, 2026
db021bf
fix up windows elevation handling
aecsocket Oct 14, 2026
81e4878
set proper env vars for persistent data in app containers
aecsocket Oct 14, 2026
de1b25c
Add sandbox agent
Moulberry Oct 15, 2026
4279366
Hook up SandboxHandle into sandbox service, pending impls for other p…
Moulberry Oct 15, 2026
d13ef95
fmt
aecsocket Oct 16, 2026
538673f
split out sandbox/spawn logic in app-lib
aecsocket Oct 16, 2026
0c092b1
minecraft command java agent setup
aecsocket Oct 16, 2026
10eece5
Implement requestAccess
Moulberry Oct 16, 2026
3a84d73
Merge remote-tracking branch 'origin/boris/sandbox' into boris/sandbox
Moulberry Oct 16, 2026
96d9974
cargo fmt
Moulberry Oct 16, 2026
9668104
use std::fs again for sandbox agent jar write
aecsocket Oct 16, 2026
f936c3d
windows ACL write
aecsocket Oct 15, 2026
e156962
safer ACL additions/removals
aecsocket Oct 15, 2026
ae1f740
sandbox work
aecsocket Oct 15, 2026
994b6db
adjust file watcher to fix reporting ACL edit as crash
aecsocket Oct 15, 2026
ac1771d
fix up rebase
aecsocket Oct 16, 2026
a882dbd
safer ledger locking and txns
aecsocket Oct 16, 2026
c84e7a9
human explanation for ACL stuff
aecsocket Oct 16, 2026
569ccb5
clarify add/remove ordering
aecsocket Oct 16, 2026
4174504
remove from ACL idempotency
aecsocket Oct 16, 2026
382d58e
get linux compile working with no-op flatpak/bwrap sandbox child impls
aecsocket Oct 19, 2026
923f007
rw-mount assets/skins and fix bwrap mounting
aecsocket Oct 19, 2026
35a0f0a
move when we create mounted dirs
aecsocket Oct 19, 2026
fd3c0ee
fix writing temp files on linux backends
aecsocket Oct 19, 2026
be9847b
allow rw to synced options
aecsocket Oct 19, 2026
a2c7481
allow DnD on windows using expose path
aecsocket Oct 22, 2026
0832589
Implement file sharing for bubblewrap
Moulberry Oct 22, 2026
e17929e
Merge
Moulberry Oct 22, 2026
7c5d41f
Add more transforms for older versions of the game
Moulberry Oct 22, 2026
e8564bf
Add transformation so auth works on 1.15 and below
Moulberry Oct 22, 2026
9c60379
Proxy all other requests to session/services endpoints
Moulberry Oct 23, 2026
81a06c7
Implement launcher api overrides for SDL file dialogs
Moulberry Oct 23, 2026
6427ff9
Disable desktop transforms on macos since they are unnecessary
Moulberry Oct 24, 2026
0f9ca90
Add transforms for NFD (NativeFileDialogs)
Moulberry Oct 24, 2026
07873fe
Don't try request access if we already have access to file
Moulberry Oct 24, 2026
ccc4903
Fix compile errors on non-macos platforms and return an error instead
Moulberry Oct 27, 2026
e66e1a9
Merge branch 'main' into boris/sandbox
aecsocket Oct 30, 2026
be890f3
fix: broken deps
IMB11 Oct 31, 2026
dd04639
fix: dep changes
IMB11 Oct 31, 2026
edbe8bd
Remove file sharing test & fix bubblewrap/noop compile issues
Moulberry Nov 14, 2026
d2f0a5f
Filter environment variables again
Moulberry Nov 14, 2026
c8e9ad9
Implement consistent behaviour for overlapping mounts
Moulberry Nov 14, 2026
96e775c
cargo fmt on modrinth-sandbox
Moulberry Nov 14, 2026
ba6b037
Remove explicit bind of mods directory since instance directory is al…
Moulberry Nov 14, 2026
3b429e4
Cloexec every fd on Linux before exec'ing
Moulberry Nov 14, 2026
9de2357
Bind flatpak document portal correctly
Moulberry Nov 14, 2026
6593ef9
Avoid toctou exploit since explorer.exe actually executes files. Use …
Moulberry Nov 14, 2026
cbab91e
Disallow renaming root files (file_sharing)
Moulberry Nov 14, 2026
4f364f6
Disallow setuid/setgid using setattr
Moulberry Nov 14, 2026
2914582
Use double-fork when spawning dbus proxy to avoid zombie process
Moulberry Nov 14, 2026
d7536b9
Use dedicated spawning thread over tokio::spawn_blocking to avoid ear…
Moulberry Nov 14, 2026
6183a12
Prevent kill() after wait potentially killing other process using reu…
Moulberry Nov 14, 2026
9f062ab
Include query string in proxied request
Moulberry Nov 14, 2026
53e3d03
Strip hop-by-hop headers from proxied responses
Moulberry Nov 14, 2026
bbdb716
Explicitly shutdown tcpstream in service api
Moulberry Nov 14, 2026
e4bf379
Add deadline and buffer limit to service api http server
Moulberry Nov 14, 2026
25b1d2b
Don't open file twice on Linux
Moulberry Nov 14, 2026
b89b7d3
Simplify pathset to only look for single parent at missing position s…
Moulberry Nov 14, 2026
a1ce97c
Remove path prefix from Windows paths in pathset
Moulberry Nov 14, 2026
3825d9e
Ignore missing binds on Windows/Flatpak
Moulberry Nov 14, 2026
4a46b4f
Remove redundant check for equals sign in env var
Moulberry Nov 14, 2026
1561e36
Ensure mountpoint directory exists in file_sharing
Moulberry Nov 14, 2026
3ad643b
Handle multiple delete notifications in file_sharing
Moulberry Nov 14, 2026
af66bc1
Report correct readdir entry file type
Moulberry Nov 14, 2026
3aa1bf5
Fix readdir resume by passing offset from dir entry
Moulberry Nov 14, 2026
67bb295
Fix link not using correct parent inode
Moulberry Nov 14, 2026
de2e9c6
Don't reply with nul byte in readlink
Moulberry Nov 14, 2026
ead7bd7
Fix parent subfile map not being updated in same-folder rename
Moulberry Nov 14, 2026
a7fdd28
Use default Owner permissions for fuse & create in runtime dir
Moulberry Nov 14, 2026
3e1c77f
Remove fallback for XDG_RUNTIME_DIR and ignore dbus proxy spawn failure
Moulberry Nov 14, 2026
62035fb
Improve X11 display parsing
Moulberry Nov 14, 2026
f80e070
Fix readInputStreamToString not properly reading when available bytes…
Moulberry Nov 14, 2026
efabb07
Fix multiple dialogs in NFD returning incorrect pointer type (must be…
Moulberry Nov 14, 2026
416c74c
Clean up file dialog transformation using helper
Moulberry Nov 14, 2026
d171049
Fix crash when openuri with null scheme
Moulberry Nov 14, 2026
3bbc76c
Support TinyFileDialogs in sandbox agent
Moulberry Nov 15, 2026
c9bc7a0
Add .gitignore to the agent directory
Moulberry Nov 15, 2026
c2b03b3
Fix some pathset bugs
Moulberry Nov 15, 2026
270744d
Add unit tests for pathset behaviour
Moulberry Nov 15, 2026
721bc22
Recompile SandboxAgent.jar
Moulberry Nov 15, 2026
8c2c0a4
Fix Windows/Linux compile issues and fmt
Moulberry Nov 15, 2026
f923f7c
Use posix spawn on macos with POSIX_SPAWN_CLOEXEC_DEFAULT
Moulberry Nov 15, 2026
18eab9a
Handle double-fork failure without returning into parent code
Moulberry Nov 15, 2026
ce52853
Don't die_with_parent for dbus proxy since we double fork it
Moulberry Nov 15, 2026
69da0c0
Use default stack size for spawner thread
Moulberry Nov 15, 2026
6413454
Fix security hole by using fake flatpak name instead of modrinth app
Moulberry Nov 15, 2026
9514845
Use sandbox params to specify paths to avoid issues with weird paths …
Moulberry Nov 15, 2026
918cf8a
Use new-session over blocking TIOCSTI which fails because of overlapp…
Moulberry Nov 15, 2026
ab0d19c
Clean up unused code/comments
Moulberry Nov 15, 2026
065fa21
Replace 1.4gb of tiny files with 48mb tar.zst
Moulberry Nov 15, 2026
f54f307
Fix setattr not working on folders due to RDWR permission
Moulberry Nov 15, 2026
df0bc72
Bind some egl directories and allow passthrough of __GL_THREADED_OPTI…
Moulberry Nov 15, 2026
1e40606
Pass through PATH and some common localization stuff on macos
Moulberry Nov 15, 2026
9a0bc61
Add INSIDE_MODRINTH_SANDBOX environment variables so mods can detect …
Moulberry Nov 15, 2026
65e4a1a
Pass name instead of string sid to helper in order to avoid malicious…
Moulberry Nov 15, 2026
673fdf4
Improve error handling & start logic of api service server
Moulberry Nov 15, 2026
62d1a3b
Fallback fd closure when close_range isn't available
Moulberry Nov 15, 2026
2d2f757
Report errors for failure to create windows grant
Moulberry Nov 15, 2026
9ab7754
cargo fmt
Moulberry Nov 15, 2026
c03960b
Use run_on_spawn_thread for open_dir as well
Moulberry Nov 15, 2026
891aa4e
Add open file dialog for Linux
Moulberry Nov 15, 2026
57fcb74
Add open file dialog to Windows
Moulberry Nov 16, 2026
a42e556
Disallow WRITE_DAC and WRITE_OWNER under windows write permissions
Moulberry Nov 16, 2026
e0f160b
Support expose_path on windows with write permission
Moulberry Nov 16, 2026
500ca74
Fix some linux/windows compile errors
Moulberry Nov 16, 2026
7ea243e
Don't disallow dnd when dropping folder
Moulberry Nov 16, 2026
80962d9
Fix stall when http request matches exact byte count of buffer
Moulberry Nov 16, 2026
51c53f7
Fix missing sdl ShowOpenFolderDialog hook
Moulberry Nov 16, 2026
7fdfaa5
Fix ledger code causing launch failure when pid is reused by inaccess…
Moulberry Nov 16, 2026
3d53886
Fix more Linux/Windows compile errors
Moulberry Nov 16, 2026
8245d9a
feat: sandboxing settings tab (#7792)
IMB11 Nov 16, 2026
da4108d
feat: hook up sandboxing settings
IMB11 Nov 16, 2026
369e904
Merge remote-tracking branch 'origin/main' into boris/sandbox
IMB11 Nov 16, 2026
1b91a3a
fix: prepr
IMB11 Nov 16, 2026
7bfd056
fix: cargo check/clippy/fmt
IMB11 Nov 16, 2026
63f842c
Bind some proc filesystems for accessing power information
Moulberry Nov 16, 2026
6bfa260
Allow some steam protocols through
Moulberry Nov 16, 2026
aa815d9
Various http fixes when proxying auth requests
Moulberry Nov 17, 2026
ebb2389
Bind a lot more /sys stuff
Moulberry Nov 18, 2026
68c4231
Fix compile error on bwrap backend
Moulberry Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 177 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading