]> www.infradead.org Git - users/dwmw2/linux.git/commit
cifs: Improve guard for excluding $LXDEV xattr
authorPali Rohár <pali@kernel.org>
Thu, 12 Sep 2024 13:06:22 +0000 (15:06 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2024 20:50:32 +0000 (14:50 -0600)
commitd3d797e326533794c3f707ce1761da7a8895458c
tree18514ab27f2eba6d32b8103b6a58038969f7785d
parent06a7adf318a30bdcfa1222ed6d2640e6bb266d7b
cifs: Improve guard for excluding $LXDEV xattr

$LXDEV xattr is for storing block/char device's major and minor number.
Change guard which excludes storing $LXDEV xattr to explicitly filter
everything except block and char device. Current guard is opposite, which
is currently correct but is less-safe. This change is required for adding
support for creating WSL-style symlinks as symlinks also do not use
device's major and minor numbers.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/reparse.c