Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2017 08:47:44 +0200
From:      Borja Marcos <borjam@sarenet.es>
To:        Mike Tancsa <mike@sentex.net>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: protecting zfs snapshot info
Message-ID:  <52984307-2C6C-454C-A69B-15FB4AE01E1B@sarenet.es>
In-Reply-To: <d7fa3f0c-e00a-9c41-5430-1f381f71d3e0@sentex.net>

index | next in thread | previous in thread | raw e-mail


> On 12 Aug 2017, at 19:14, Mike Tancsa <mike@sentex.net> wrote:
> 
> 
> Is there a way in zfs to protect non root users from seeing snapshots ?
> lets say a user makes a permissions mistake on a sensitive homedirectory
> on a Monday AM that is not discovered until the next day.  If there are
> a whole mess of snapshots created between those two points in time,
> there is no way to protect that directory without deleting the snapshots.

Good question and it’s a problem indeed. The .zfs directory is always created
and it can be hidden but it’s still accessible. It’s a security problem that prevents
an effective access revocation for a directory/file, I guess that’s what you mean.

Ideally, datasets should have a property preventing the snapshots to be auto mounted
when the relevant .zfs/snapshot directory was accessed or even preventing the creation
of .zfs.

Alternatively there could be a specific zfs permission covering this, like a  “snapaccess” for
snapshot access or “snapmount” for automatic mounting of snapshots, but it’s more
complicated to do.





Borja.



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52984307-2C6C-454C-A69B-15FB4AE01E1B>