mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
3475724ea4
commit
9c7da9a95a
@@ -43,6 +43,8 @@ typedef enum {
|
||||
NAME_ERR_RESERVED, /* entire name is reserved */
|
||||
NAME_ERR_DISKLIKE, /* reserved disk name (c[0-9].*) */
|
||||
NAME_ERR_TOOLONG, /* name is too long */
|
||||
NAME_ERR_SELF_REF, /* reserved self path name ('.') */
|
||||
NAME_ERR_PARENT_REF, /* reserved parent path name ('..') */
|
||||
NAME_ERR_NO_AT, /* permission set is missing '@' */
|
||||
} namecheck_err_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user