Zfs: Support ZFS delegations

Created on 2 Nov 2011  路  8Comments  路  Source: openzfs/zfs

The 'zfs allow' code which can be used to delegate functionality relies on the zfssecpolicy* hooks being cleanly implemented to limit access accordingly. This work still must be completed in issue #228 before this will work properly.

Secondly, because we are using a mount.zfs helper to mount the filesystem through /bin/mount it's difficult to allow non-root processes to mount. The standard /bin/mount tool expects root and only root to be able to do certain things. A solution needs to be found for this still.

Feature

Most helpful comment

0.7.0.

All 8 comments

One comment: backup tools such as zetaback wouldn't have to run as root if this were implemented.

Want this for ability to delegate "snapshot create" ability and to containers :)

Since I don't want to open another issue, if it is a duplicate: Would this - if implemented - allow me to effectively "give" a dataset (recursively) to a user?
Essentially the use case would be this:
Given a pool tank with the dataset tank/home mounted to /home, create and give to user foo the dataset tank/home/foo. User foo may now set/get properties ontank/home/foo and create sub datasets like tank/home/foo/lxc (implicitly owned by foo); this goal would be to have unprivileged LXC containers on datasets 'owned' by the user managing the LXC containers, so adding a new unprivileged user and giving him a new dataset as home would immediately enable the user to run unprivileged LXC containers, each on its own dataset, complete with snapshots, deduplication (if enabled), etc.

@Calrama yes, that's the basic idea.

Will this feature be included in the 0.6.5.8 or 0.7.0 milestone?

0.7.0.

@behlendorf Does 0.7.0 rc4 have this implemented? thanks!

@kenthinson yes, it's there.

Was this page helpful?
0 / 5 - 0 ratings