aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorStephen Smalley <[email protected]>2025-06-05 16:51:16 +0000
committerChristian Brauner <[email protected]>2025-06-06 08:00:17 +0000
commit800d0b9b6a8b1b354637b4194cc167ad1ce2bdd3 (patch)
treef3d1ae0e6974441a8016993dab970c3cccc79836 /net/unix/af_unix.c
parentovl: fix regression caused by lookup helpers API changes (diff)
downloadkernel-800d0b9b6a8b1b354637b4194cc167ad1ce2bdd3.tar.gz
kernel-800d0b9b6a8b1b354637b4194cc167ad1ce2bdd3.zip
fs/xattr.c: fix simple_xattr_list()
commit 8b0ba61df5a1 ("fs/xattr.c: fix simple_xattr_list to always include security.* xattrs") failed to reset err after the call to security_inode_listsecurity(), which returns the length of the returned xattr name. This results in simple_xattr_list() incorrectly returning this length even if a POSIX acl is also set on the inode. Reported-by: Collin Funk <[email protected]> Closes: https://lore.kernel.org/selinux/[email protected]/ Reported-by: Paul Eggert <[email protected]> Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2369561 Fixes: 8b0ba61df5a1 ("fs/xattr.c: fix simple_xattr_list to always include security.* xattrs") Signed-off-by: Stephen Smalley <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions