[systemd-devel] [PATCH] tmpfiles: don't create subvolumes in chroot
walters at verbum.org
Thu May 21 08:19:22 PDT 2015
On Wed, Apr 1, 2015, at 10:02 AM, Martin Pitt wrote:
> IMHO subvolumes, like hard disk partitions, are something that the
> administrator of a host should create deliberately only. Automatically
> created ones just create confusion about "why the heck can't I remove
> that directory".. It's roughly equivalent of some random package
> messing with your partitions and/or fstab.
> So if we could somehow make this conditional on "running on real
> iron", that would be a good compromise IMHO.
I also agree with this.
Having a special `btrfs rm -rf` (as is implemented now by systemd/src/shared/btrfs-util.c)
copied into various projects is painful. There are a *lot* of tools that
do packages in chroots that would all need to be taught this.
I'll look at the seccomp approach, but the amount of pain versus gain
here seems quite disproportionate right now.
(OTOH, I want to use seccomp for RPM things in general, of which
this is just one)
More information about the systemd-devel