.zfs/snapshots privileges settings #9028
Replies: 11 comments 3 replies
-
Distribution name: Ubuntu 18.04 Checking privileges on .zfs/snapshot shows all users, including guest, have all privileges. |
Beta Was this translation helpful? Give feedback.
-
I think it's missing |
Beta Was this translation helpful? Give feedback.
-
everything below .zfs/snapshot is readlony, regardless was permission is shown - so this should be a "non issue" you can try adding or remove files there and will see that you won't succeed
why? if anybody could read /zpool/mydir - why would you want to disallow access to /zpool/.zfs/snapshots/$snapname/mydir ? |
Beta Was this translation helpful? Give feedback.
-
One potential issue I can see immediately is that if a there was a security issue where something was visible to users in the past when a snapshot was created, but has since been corrected. Since the snapshot can't be modified to also fix the permissions, how can you reasonably handle this without a way to restrict access to the problematic snapshot? |
Beta Was this translation helpful? Give feedback.
-
The recommended solution is this case would be to destroy any effected snapshots. |
Beta Was this translation helpful? Give feedback.
-
Being forced to destroy an entire snapshot, and all the value/data that it has, simply to secure a tiny portion of it is not a solution. Unless there's some way to edit snapshots, which isn't yet available as far as I know, is it? |
Beta Was this translation helpful? Give feedback.
-
Editing snapshots isn't really possible, but providing some administrative controls regarding how they can be used would be. For example, disabling the Note: I've gone ahead and migrated this issue to the new "Ideas" tab in the Discussions tab which we've just enabled to better track and discuss these kind of feature requests. |
Beta Was this translation helpful? Give feedback.
-
To me, it seems like there should be a per-snapshot property that controls whether the snapshot is accessible via the |
Beta Was this translation helpful? Give feedback.
-
Reading through zfsconcepts(8) states:
This is specified by zfsprops(8) and reads:
The documentation does not state the property can be set to disabled, as suggested before. Am I misinterpreting something? Or is that an additional value we intend to introduce here? This property could then also be delegated by a zpool's root dataset to its childs. For completely hiding datasets with the hidden or visible settings, I guess, it would have to be mutated during snapshot creation, if (1) snapshots are immutable and (2) a desired snapshot is not intended to be visible in the filesystem at all. Is that even possible? The |
Beta Was this translation helpful? Give feedback.
-
I see a potential security problem here, also because current behavior may be unexpected for some administrators. At the least, it's a usability problem because snapshots have to be destroyed whenever privileges change on a system. This problem has been around for years now, and I think that there should either be a clean solution (e.g. being able to set file modes for the The latter may not be the best option, but it's better than keeping this problem open even longer (and restricting access to the root user should not be too difficult to implement, I guess?). I wasn't aware of this discussion previously but recently created a bug ticket for FreeBSD because I consider this a serious bug that is difficult to work around (one workaround for FreeBSD is to shadow the |
Beta Was this translation helpful? Give feedback.
-
Is there an issue report open here too? I didn't find one. This discussion is under "ideas", but I think it is a real issue and should be treated as such. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
System information
Describe the problem you're observing
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
Beta Was this translation helpful? Give feedback.
All reactions