]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFSv4 only print the label when its queried
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 29 Nov 2021 20:33:56 +0000 (15:33 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:41:56 +0000 (11:41 +0100)
commitb6ca19b6c99d5aa62cdcc639f28a6795332ce1ac
treeedb7ff1f3fda0abb2f5e78b2e0da83f430980286
parent0ddcf42b842966c3eb2f717f362671725aa61b16
NFSv4 only print the label when its queried

BugLink: https://bugs.launchpad.net/bugs/1963889
[ Upstream commit 2c52c8376db7160a1dd8a681c61c9258405ef143 ]

When the bitmask of the attributes doesn't include the security label,
don't bother printing it. Since the label might not be null terminated,
adjust the printing format accordingly.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/nfs4xdr.c