]> granicus.if.org Git - zfs/commit
Don't use d_path() for automount mount point for chroot'd process
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 2 Jul 2019 15:25:23 +0000 (00:25 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 2 Jul 2019 15:25:23 +0000 (08:25 -0700)
commitdf358db7c3a39f8a13f16fd99d87c08ca2f2e2a5
tree4ff09f2cafe4a0ac54d2098d112be79e71ae8546
parentac6d54160ad016a199101a074db50345daea4c59
Don't use d_path() for automount mount point for chroot'd process

Chroot'd process fails to automount snapshots due to realpath(3)
failure in mount.zfs(8).

Construct a mount point path from sb of the ctldir inode and dirent
name, instead of from d_path(), so that chroot'd process doesn't get
affected by its view of fs.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8903
Closes #8966
module/zfs/zfs_ctldir.c