]> git.sesse.net Git - bcachefs-tools-debian/blob - udev/64-bcachefs.rules
Disable pristine-tar option in gbp.conf, since there is no pristine-tar branch.
[bcachefs-tools-debian] / udev / 64-bcachefs.rules
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 #
3 # Copyright (C) 2024 Oracle.  All rights reserved.
4 # Author: Darrick J. Wong <djwong@kernel.org>
5 #
6 # Don't let udisks automount bcachefs filesystems without even asking a user.
7 # This doesn't eliminate filesystems as an attack surface; it only prevents
8 # evil maid attacks when all sessions are locked.
9 #
10 # According to http://storaged.org/doc/udisks2-api/latest/udisks.8.html,
11 # supplying UDISKS_AUTO=0 here changes the HintAuto property of the block
12 # device abstraction to mean "do not automatically start" (e.g. mount).
13 SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="bcachefs", ENV{UDISKS_AUTO}="0"