]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.2: another fix for listxattr
authorOlga Kornievskaia <okorniev@redhat.com>
Tue, 22 Jul 2025 20:56:41 +0000 (16:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:09 +0000 (12:05 +0200)
commitc442c5318cdb7ea77f749855e31b1d9e6804e2fb
tree319f756de0e48a3130d955d15c9e11fb5715fe67
parent763810bb883cb4de412a72f338d80947d97df67b
NFSv4.2: another fix for listxattr

[ Upstream commit 9acb237deff7667b0f6b10fe6b1b70c4429ea049 ]

Currently, when the server supports NFS4.1 security labels then
security.selinux label in included twice. Instead, only add it
when the server doesn't possess security label support.

Fixes: 243fea134633 ("NFSv4.2: fix listxattr to return selinux security label")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Link: https://lore.kernel.org/r/20250722205641.79394-1-okorniev@redhat.com
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c