]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs_extattr: Allow extattr names up to the full max
authorConrad Meyer <cem@FreeBSD.org>
Thu, 14 May 2020 03:01:23 +0000 (03:01 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Thu, 14 May 2020 03:01:23 +0000 (03:01 +0000)
commitb21ae0ff6fa29d05edf12744ac8c4ec5fc8562bc
tree1d0400459166f0f5cea63bb38096731187bb8fe6
parentb18e0a534fb34767b1572cbf13805918c880be26
vfs_extattr: Allow extattr names up to the full max

Extattr names are allowed to be 255 bytes -- not 254 bytes plus trailing
NUL.  Provide a 256 buffer so that copyinstr() has room for the trailing
NUL.

Re-enable test for maximal name lengths.

PR: 208965
Reported by: asomers
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D24584
sys/kern/vfs_extattr.c
usr.sbin/extattr/tests/extattr_test.sh