Re: [PATCH] fs/xattr.c: fix simple_xattr_list()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Moore <paul@xxxxxxxxxxxxxx> writes:

>> <stephen.smalley.work@xxxxxxxxx> wrote:
>> >
>> > 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 <collin.funk1@xxxxxxxxx>
>> > Closes: https://lore.kernel.org/selinux/8734ceal7q.fsf@xxxxxxxxx/
>> > Reported-by: Paul Eggert <eggert@xxxxxxxxxxx>
>> > 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 <stephen.smalley.work@xxxxxxxxx>
>> > ---
>> >  fs/xattr.c | 1 +
>> >  1 file changed, 1 insertion(+)
>>
>> Reviewed-by: Paul Moore <paul@xxxxxxxxxxxxxx>
>
> Resending this as it appears that Stephen's original posting had a
> typo in the VFS mailing list.  The original post can be found in the
> SELinux archives:
>
> https://lore.kernel.org/selinux/20250605164852.2016-1-stephen.smalley.work@xxxxxxxxx/

Hi, responding to this message since it has the correct lists.

I just booted into a kernel with this patch applied and confirm that it
fixes the Gnulib tests that were failing.

Reviewed-by: Collin Funk <collin.funk1@xxxxxxxxx>
Tested-by: Collin Funk <collin.funk1@xxxxxxxxx>

Thanks for the fix.

Collin




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux