From 735716931755c74f3788ac83fead717c0bb22dfe Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 15 May 2023 08:40:27 -0700 Subject: file-has-acl: improve port to Fedora 39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem reported by Ondrej Valousek in: https://lists.gnu.org/r/bug-gnulib/2023-05/msg00078.html * lib/file-has-acl.c: Include minmax.h. [USE_ACL && HAVE_LINUX_XATTR_H && HAVE_LISTXATTR]: Include stdckdint.h. (file_has_acl) [USE_ACL && HAVE_LINUX_XATTR_H && HAVE_LISTXATTR]: If the file has NFSv4 ACLs, ignore any POSIX ACLs, for Fedora 39. Return a bit faster when listxattr returns 0. Don’t loop forever if an attacker is fiddling with ACLs. * modules/file-has-acl (Depends-on): Add minmax, stdckdint. --- ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7c5f70d8e6..ade908c972 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2023-05-15 Paul Eggert + + file-has-acl: improve port to Fedora 39 + Problem reported by Ondrej Valousek in: + https://lists.gnu.org/r/bug-gnulib/2023-05/msg00078.html + * lib/file-has-acl.c: Include minmax.h. + [USE_ACL && HAVE_LINUX_XATTR_H && HAVE_LISTXATTR]: Include stdckdint.h. + (file_has_acl) [USE_ACL && HAVE_LINUX_XATTR_H && HAVE_LISTXATTR]: + If the file has NFSv4 ACLs, ignore any POSIX ACLs, for Fedora 39. + Return a bit faster when listxattr returns 0. + Don’t loop forever if an attacker is fiddling with ACLs. + * modules/file-has-acl (Depends-on): Add minmax, stdckdint. + 2023-05-15 Bruno Haible Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 . -- cgit v1.2.1