mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
4ed5e25074
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
228 lines
2.9 KiB
INI
228 lines
2.9 KiB
INI
#
|
|
# Copyright (c) 2016, 2019 by Delphix. All rights reserved.
|
|
# These variables are used by zfs-tests.sh to constrain which utilities
|
|
# may be used by the suite. The suite will create a directory which is
|
|
# the only element of $PATH and create symlinks from that dir to the
|
|
# binaries listed below.
|
|
#
|
|
# Please keep the contents of each variable sorted for ease of reading
|
|
# and maintenance.
|
|
#
|
|
export SYSTEM_FILES_COMMON='awk
|
|
basename
|
|
bc
|
|
bunzip2
|
|
bzcat
|
|
cat
|
|
chgrp
|
|
chmod
|
|
chown
|
|
cksum
|
|
cmp
|
|
cp
|
|
cpio
|
|
cut
|
|
date
|
|
dd
|
|
df
|
|
diff
|
|
dirname
|
|
dmesg
|
|
du
|
|
echo
|
|
env
|
|
expr
|
|
false
|
|
file
|
|
find
|
|
fio
|
|
getconf
|
|
getent
|
|
getfacl
|
|
grep
|
|
gunzip
|
|
gzip
|
|
head
|
|
hostname
|
|
id
|
|
iostat
|
|
kill
|
|
ksh
|
|
ldd
|
|
ln
|
|
ls
|
|
mkdir
|
|
mknod
|
|
mkfifo
|
|
mktemp
|
|
mount
|
|
mv
|
|
net
|
|
od
|
|
openssl
|
|
pamtester
|
|
pax
|
|
pgrep
|
|
ping
|
|
pkill
|
|
printf
|
|
ps
|
|
python3
|
|
readlink
|
|
rm
|
|
rmdir
|
|
rsync
|
|
scp
|
|
script
|
|
sed
|
|
seq
|
|
setfacl
|
|
sh
|
|
sleep
|
|
sort
|
|
ssh
|
|
stat
|
|
strings
|
|
sudo
|
|
swapoff
|
|
swapon
|
|
sync
|
|
tail
|
|
tar
|
|
timeout
|
|
touch
|
|
tr
|
|
true
|
|
truncate
|
|
umount
|
|
uname
|
|
uniq
|
|
vmstat
|
|
wc'
|
|
|
|
export SYSTEM_FILES_FREEBSD='chflags
|
|
compress
|
|
diskinfo
|
|
fsck
|
|
getextattr
|
|
gpart
|
|
jail
|
|
jexec
|
|
jls
|
|
lsextattr
|
|
md5
|
|
mdconfig
|
|
newfs
|
|
pw
|
|
rmextattr
|
|
setextattr
|
|
sha256
|
|
showmount
|
|
swapctl
|
|
sysctl
|
|
trim
|
|
uncompress'
|
|
|
|
export SYSTEM_FILES_LINUX='attr
|
|
blkid
|
|
blkdiscard
|
|
blockdev
|
|
chattr
|
|
exportfs
|
|
fallocate
|
|
free
|
|
getfattr
|
|
groupadd
|
|
groupdel
|
|
groupmod
|
|
hostid
|
|
losetup
|
|
lsattr
|
|
lsblk
|
|
lscpu
|
|
lsmod
|
|
lsscsi
|
|
md5sum
|
|
mkswap
|
|
modprobe
|
|
mpstat
|
|
nsenter
|
|
parted
|
|
perf
|
|
setfattr
|
|
sha256sum
|
|
udevadm
|
|
unshare
|
|
useradd
|
|
userdel
|
|
usermod
|
|
|
|
flock
|
|
logger'
|
|
|
|
export ZFS_FILES='zdb
|
|
zfs
|
|
zhack
|
|
zinject
|
|
zpool
|
|
ztest
|
|
raidz_test
|
|
arc_summary
|
|
arcstat
|
|
dbufstat
|
|
mount.zfs
|
|
zed
|
|
zgenhostid
|
|
zstream
|
|
zfs_ids_to_path
|
|
zpool_influxdb'
|
|
|
|
export ZFSTEST_FILES='badsend
|
|
btree_test
|
|
chg_usr_exec
|
|
devname2devid
|
|
dir_rd_update
|
|
draid
|
|
file_append
|
|
file_check
|
|
file_trunc
|
|
file_write
|
|
get_diff
|
|
getversion
|
|
largest_file
|
|
libzfs_input_check
|
|
mkbusy
|
|
mkfile
|
|
mkfiles
|
|
mktree
|
|
mmap_exec
|
|
mmap_libaio
|
|
mmap_seek
|
|
mmap_sync
|
|
mmapwrite
|
|
nvlist_to_lua
|
|
randfree_file
|
|
randwritecomp
|
|
readmmap
|
|
read_dos_attributes
|
|
rename_dir
|
|
rm_lnkcnt_zero_file
|
|
send_doall
|
|
threadsappend
|
|
user_ns_exec
|
|
write_dos_attributes
|
|
xattrtest
|
|
stride_dd
|
|
zed_fd_spill-zedlet
|
|
suid_write_to_file
|
|
cp_files
|
|
blake3_test
|
|
edonr_test
|
|
skein_test
|
|
sha2_test
|
|
ctime
|
|
truncate_test
|
|
ereports
|
|
zfs_diff-socket
|
|
dosmode_readonly_write'
|