HomeFreeBSD

Restrict filesystem creation if name referred either '.' or '..'

Description

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

Details

Provenance
Tulsi Jain <TulsiJain@users.noreply.github.com>Authored on Jun 13 2019, 3:56 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 13 2019, 3:56 PM
Parents
rG3475724ea422: ztest: dmu_tx_assign() gets ENOSPC in spa_vdev_remove_thread()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9c7da9a95aaa: Restrict filesystem creation if name referred either '.' or '..' (authored by Tulsi Jain <TulsiJain@users.noreply.github.com>).Jun 13 2019, 3:56 PM