]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs_extattr: Allow extattr names up to the full max
authorcem <cem@FreeBSD.org>
Thu, 14 May 2020 03:01:23 +0000 (03:01 +0000)
committercem <cem@FreeBSD.org>
Thu, 14 May 2020 03:01:23 +0000 (03:01 +0000)
commit8df595b9ba46a43994b3400f61ff9ca500a9602f
tree1d0400459166f0f5cea63bb38096731187bb8fe6
parent5f0a69f87fab0f0b10b1e47b4d6264637629ab1e
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