]> 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:09:01 +0000 (12:09 +0200)
commit1116e66111f8f582e34cc143010d05bf9ce2ca15
treea751ec457d2ccca6dbbcde00aebc6c263d7d1100
parent12ad3def2e5e0b120e3d0cb6ce8b7b796819ad40
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