]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.2: fix listxattr to return selinux security label
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 25 Apr 2025 18:09:21 +0000 (14:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 08:57:54 +0000 (10:57 +0200)
commitaaa51616993e1e276439e5286d4b556cf733e76a
tree16146ccaaa7e781be7c0adb76a156e41dafb0db4
parente0de34ea6deb9d49e1cca1d79042d6a5c78e6ab6
NFSv4.2: fix listxattr to return selinux security label

[ Upstream commit 243fea134633ba3d64aceb4c16129c59541ea2c6 ]

Currently, when NFS is queried for all the labels present on the
file via a command example "getfattr -d -m . /mnt/testfile", it
does not return the security label. Yet when asked specifically for
the label (getfattr -n security.selinux) it will be returned.
Include the security label when all attributes are queried.

Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c