Strip 'zfsutil,remount' from /etc/mtab
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 Mar 2011 18:17:33 +0000 (11:17 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 Mar 2011 20:33:29 +0000 (13:33 -0700)
commit3aff775555a40fe3e5193f1309ba6e80312be5ff
tree7c8a9e8ed5562561f60312e66262322a44e0fe4b
parent093aa692861d0c91fd29979c13fc188760a3985b
Strip 'zfsutil,remount' from /etc/mtab

When updating /etc/mtab we should be careful and strip certain
options.  In particular, we need to strip 'zfsutil' because if
we don't the mount utility will helpfull provide it to the
mount helper when we issue mount(8) again.  This subverts the
check that the caller is zfs(8) and not mount(8).
cmd/mount_zfs/mount_zfs.c