feat(abs): bwrap: add special mount rule for debian.

This commit is contained in:
Alexandre Pujol 2024-06-11 00:01:46 +01:00
parent 8fe2bf4c20
commit 08a1aba39d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -2,10 +2,9 @@
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# Minimal set of rules for bwrap
# A minimal set of rules for sandboxed programs using bwrap.
# A profile using this abstraction still needs to set:
# - the attach_disconnected flag
# - the flag: attach_disconnected
# - bwrap execution: '@{bin}/bwrap rix,'
# userns,
@ -31,6 +30,9 @@
umount /,
umount /oldroot/,
#aa:only debian whonix
mount -> /newroot/{,**}, # Debian does not support the remount rule.
pivot_root oldroot=/newroot/ /newroot/,
pivot_root oldroot=/tmp/oldroot/ /tmp/,