[GH-ISSUE #1231] Feature Request: Per profile 'disable-mnt' #836

Closed
opened 2026-05-05 06:56:57 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @SkewedZeppelin on GitHub (Apr 17, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1231

A per profile 'disable-mnt' like the one configurable in firejail.conf would be super useful, especially for hardening profiles that are currently whitelist only. Like having a sandboxed program that can only access one dir in your home folder, but can still read/write to your other drives is a bit silly.

Like https://gist.github.com/SpotComms/385bf9f2290b51a2639dacedc74bb666 vs https://github.com/netblue30/firejail/pull/1009, #1009 would've blocked a lot of programs from accessing files they should have access to, but this would just be for hardening already whitelist only profiles.

One issue I do see is that for instance I keep my downloads under /mnt/Drive-X/Temp/Downloads and have it symlinked in ~/, so having disable-mnt in Chromium/Firefox would break access to downloads. Having disable-mnt add a check that would keep that dir (the ones whitelisted in each profile) whitelisted but still blacklist all the other drives/paths would be nice.

Originally created by @SkewedZeppelin on GitHub (Apr 17, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1231 A per profile 'disable-mnt' like the one configurable in firejail.conf would be super useful, especially for hardening profiles that are currently whitelist only. Like having a sandboxed program that can only access one dir in your home folder, but can still read/write to your other drives is a bit silly. Like https://gist.github.com/SpotComms/385bf9f2290b51a2639dacedc74bb666 vs https://github.com/netblue30/firejail/pull/1009, #1009 would've blocked a lot of programs from accessing files they should have access to, but this would just be for hardening already whitelist only profiles. One issue I do see is that for instance I keep my downloads under /mnt/Drive-X/Temp/Downloads and have it symlinked in ~/, so having disable-mnt in Chromium/Firefox would break access to downloads. Having disable-mnt add a check that would keep that dir (the ones whitelisted in each profile) whitelisted but still blacklist all the other drives/paths would be nice.
gitea-mirror 2026-05-05 06:56:57 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#836
No description provided.