Fix zfsctl_snapshot_{,un}mount() issues
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 11 Oct 2016 16:56:28 +0000 (09:56 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Oct 2016 16:56:28 +0000 (09:56 -0700)
commit1697d2dcf1735e6f2493abff1da01001637f14bf
tree91253a810895b2c1299e11a4c23d4970617864c8
parent52f1fe3cfd35b9414568046ad7456bfbc80a9354
parent5dc1ff29ec385bc58d76e76bb367d4391c6ee155
Fix zfsctl_snapshot_{,un}mount() issues

Fix use after free in zfsctl_snapshot_unmount(). Use /usr/bin/env
instead of /bin/sh to fix a shell code injection flaw and allow use
with grsecurity.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov
Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Stian Ellingsen <stian@plaimi.net>
Closes #5250
Closes #4377