]> 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)
committerTony Hutter <hutter2@llnl.gov>
Wed, 25 Sep 2019 18:27:48 +0000 (11:27 -0700)
commit093bb6446120c50a7109ed7e7a0f2e76730b3160
treee510742f4cb75408490e4102f6540a05fa10b1bc
parent7d2489cfad1b04c1b22292d0a9a58f85195ce00c
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