]> granicus.if.org Git - zfs/commit
Restrict filesystem creation if name referred either '.' or '..'
authorTulsi Jain <TulsiJain@users.noreply.github.com>
Thu, 13 Jun 2019 15:56:15 +0000 (08:56 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Jun 2019 15:56:15 +0000 (08:56 -0700)
commit9c7da9a95aaaecced0a1cfc40190906e7a691327
treed60bad72f7c6fb38bfcdd375d50a78f2eb8a2d5c
parent3475724ea4221a354633d7c4e50d9d90f6bd266f
Restrict filesystem creation if name referred either '.' or '..'

This change restricts filesystem creation if the given name
contains either '.' or '..'

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: TulsiJain <tulsi.jain@delphix.com>
Closes #8842
Closes #8564
include/zfs_namecheck.h
lib/libzfs/libzfs_dataset.c
module/zcommon/zfs_namecheck.c
tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_009_neg.ksh