mirror_zfs/man/man8
Will Andrews 4ed5e25074 Add Linux namespace delegation support
This allows ZFS datasets to be delegated to a user/mount namespace
Within that namespace, only the delegated datasets are visible
Works very similarly to Zones/Jailes on other ZFS OSes

As a user:
```
 $ unshare -Um
 $ zfs list
no datasets available
 $ echo $$
1234
```

As root:
```
 # zfs list
NAME                            ZONED  MOUNTPOINT
containers                      off    /containers
containers/host                 off    /containers/host
containers/host/child           off    /containers/host/child
containers/host/child/gchild    off    /containers/host/child/gchild
containers/unpriv               on     /unpriv
containers/unpriv/child         on     /unpriv/child
containers/unpriv/child/gchild  on     /unpriv/child/gchild

 # zfs zone /proc/1234/ns/user containers/unpriv
```

Back to the user namespace:
```
 $ zfs list
NAME                             USED  AVAIL     REFER  MOUNTPOINT
containers                       129M  47.8G       24K  /containers
containers/unpriv                128M  47.8G       24K  /unpriv
containers/unpriv/child          128M  47.8G      128M  /unpriv/child
```

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Will Andrews <will.andrews@klarasystems.com>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Mateusz Piotrowski <mateusz.piotrowski@klarasystems.com>
Co-authored-by: Allan Jude <allan@klarasystems.com>
Co-authored-by: Mateusz Piotrowski <mateusz.piotrowski@klarasystems.com>
Sponsored-by: Buddy <https://buddy.works>
Closes #12263
2022-06-10 09:51:46 -07:00
..
.gitignore Ignore *.o.ur-safe build artifacts 2018-05-13 18:59:02 -07:00
fsck.zfs.8 Consistentify miscellaneous style on remaining manpages 2021-06-09 14:35:53 -07:00
mount.zfs.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
vdev_id.8 vdev_id.8: modernise, note scsi topology 2021-05-29 20:22:01 -07:00
zdb.8 man: Examples: use subsections instead of lists 2022-03-28 10:13:13 -07:00
zed.8.in man: ... -> … again 2022-04-20 14:31:10 -07:00
zfs_ids_to_path.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zfs-allow.8 man: ... -> … again 2022-04-20 14:31:10 -07:00
zfs-bookmark.8 Fix typos in zfs-bookmark examples 2022-05-12 09:34:24 -07:00
zfs-change-key.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-clone.8 man: zfs-clone.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-create.8 man: zfs-create.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-destroy.8 man: zfs-destroy.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-diff.8 man: zfs-diff.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-get.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-groupspace.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-hold.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zfs-inherit.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-jail.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zfs-list.8 man: zfs-list.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-load-key.8 man: speling 2022-01-06 11:00:01 -08:00
zfs-mount-generator.8.in etc/systemd/zfs-mount-generator: serialise, handle keylocation=http[s]:// 2021-11-30 09:29:50 -07:00
zfs-mount.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zfs-program.8 Fix incorrect use of unit prefix names in man pages 2022-05-04 11:44:12 -07:00
zfs-project.8 tests: prune remaining xargs(1), add missing zfs-project -c0 note 2022-01-26 11:30:09 -08:00
zfs-projectspace.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-promote.8 man: zfs-promote.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-receive.8 man: zfs-send.8, zfs-receive.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-recv.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-redact.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-release.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-rename.8 man: zfs-rename.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-rollback.8 man: zfs-rollback.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-send.8 Fix incorrect use of unit prefix names in man pages 2022-05-04 11:44:12 -07:00
zfs-set.8 Document zfs inherit -S's interaction with noninheritable properties 2022-04-20 13:39:11 -07:00
zfs-share.8 zfs-share.8: document -l flag 2021-12-17 12:52:26 -08:00
zfs-snapshot.8 man: zfs-snapshot.8: import examples from zfs.8 2022-03-28 10:13:14 -07:00
zfs-unallow.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unjail.8 Add FreeBSD jail support hooks 2019-12-11 11:58:37 -08:00
zfs-unload-key.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unmount.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unzone.8 Add Linux namespace delegation support 2022-06-10 09:51:46 -07:00
zfs-upgrade.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zfs-userspace.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zfs-wait.8 Modernise/fix/rewrite unlinted manpages 2021-06-07 13:41:54 -06:00
zfs-zone.8 Add Linux namespace delegation support 2022-06-10 09:51:46 -07:00
zfs.8 linux: libzfs: simplify module-loaded check 2022-05-18 12:51:42 -07:00
zgenhostid.8 man: speling 2022-01-06 11:00:01 -08:00
zinject.8 man: full stop at EOL 2022-02-22 10:55:51 -08:00
zpool_influxdb.8 Consistentify miscellaneous style on remaining manpages 2021-06-09 14:35:53 -07:00
zpool-add.8 man: zpool-add.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-attach.8 man: speling 2022-01-06 11:00:01 -08:00
zpool-checkpoint.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool-clear.8 Clarify failmode=wait documentation 2022-01-14 15:30:07 -08:00
zpool-create.8 man: zpool-create.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-destroy.8 man: zpool-destroy.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-detach.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool-events.8 man: speling 2022-01-06 11:00:01 -08:00
zpool-export.8 man: zpool-export.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-get.8 Vdev Properties Feature 2021-11-30 07:46:25 -07:00
zpool-history.8 Modernise/fix/rewrite unlinted manpages 2021-06-07 13:41:54 -06:00
zpool-import.8 man: zpool-import.8: -d -or -c 2022-05-09 16:03:17 -07:00
zpool-initialize.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool-iostat.8 man: zpool-iostat.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-labelclear.8 man: full stop at EOL 2022-02-22 10:55:51 -08:00
zpool-list.8 Fix incorrect use of unit prefix names in man pages 2022-05-04 11:44:12 -07:00
zpool-offline.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool-online.8 Reorganize zpool(8) man page into sections 2019-11-13 09:21:07 -08:00
zpool-reguid.8 Modernise/fix/rewrite unlinted manpages 2021-06-07 13:41:54 -06:00
zpool-remove.8 man: zpool-remove.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-reopen.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool-replace.8 man: speling 2022-01-06 11:00:01 -08:00
zpool-resilver.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool-scrub.8 man: Examples: use subsections instead of lists 2022-03-28 10:13:13 -07:00
zpool-set.8 Reorganize zpool(8) man page into sections 2019-11-13 09:21:07 -08:00
zpool-split.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zpool-status.8 man: zpool-iostat.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-sync.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zpool-trim.8 Move properties, parameters, events, and concepts around manual sections 2021-06-09 14:35:30 -07:00
zpool-upgrade.8 man: zpool-upgrade.8: import examples from zpool.8 2022-03-28 10:13:13 -07:00
zpool-wait.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zpool.8 linux: libzfs: simplify module-loaded check 2022-05-18 12:51:42 -07:00
zstream.8 Lint most manpages 2021-06-04 12:48:31 -07:00
zstreamdump.8 zstreamdump: replace with link to zstream 2021-05-21 10:16:14 -07:00