1
0
Fork 0
mirror of https://git.savannah.nongnu.org/git/acl.git synced 2026-12-03 18:44:30 +00:00
No description
  • C 92.7%
  • Perl 3.9%
  • M4 2.4%
  • Shell 0.7%
  • Makefile 0.3%
Find a file
Frederic MARIE-JOSEPH 918b37ccd5 Use flexible array members instead of zero-length arrays
string_obj's s_str, acl_obj's x_entries, acl_ea_header's a_entries and
getfacl's name are trailing arrays declared with [0] and used as
variable-length storage.  When building with -fstrict-flex-arrays=3,
GCC no longer treats a [0] array as a flexible array member, so
_FORTIFY_SOURCE=3 computes the size of these buffers from their declared
bound.  The bounded strncpy() calls in __acl_to_any_text() into
string_obj_p->s_str then abort with "buffer overflow detected", although
the allocation is large enough.

With libacl built with -fhardened -fstrict-flex-arrays=3, acl_to_text()
aborts on any ACL that names a user or group, and 14 of the 16 tests in
the test suite fail.  systemd-tmpfiles hits it on the "a+" rule for
/var/log/journal in systemd's tmpfiles.d/systemd.conf.

Declare the four arrays as C99 flexible array members.  The layout and
the ABI are unchanged.

Signed-off-by: Frederic MARIE-JOSEPH <fredericmariejoseph@gmail.com>
2026-10-02 22:59:33 +02:00
CVE Add CVE-2026-54369 and CVE-2026-54370 2026-06-28 22:44:30 +02:00
doc Update doc/CHANGES 2026-06-29 00:32:51 +02:00
examples Fix reference to renamed Makefile.examples 2026-01-17 14:11:51 +01:00
include Use flexible array members instead of zero-length arrays 2026-10-02 22:59:33 +02:00
libacl Use flexible array members instead of zero-length arrays 2026-10-02 22:59:33 +02:00
libmisc Fix some compiler warnings 2026-06-28 22:44:30 +02:00
m4 Remove unused m4 macros 2026-06-23 13:36:59 +02:00
man Minor man page clarifications 2026-06-29 00:32:51 +02:00
po German translation update 2026-06-28 22:44:30 +02:00
test test/runwrapper: make testlookup library accessible 2026-06-28 22:44:30 +02:00
tools Use flexible array members instead of zero-length arrays 2026-10-02 22:59:33 +02:00
.gitignore ignore configure.lineno 2015-09-21 17:07:11 -04:00
autogen.sh doc: include standard INSTALL file for new build system 2024-01-13 21:18:53 -05:00
configure.ac Version 2.4.0 2026-06-29 11:00:28 +02:00
exports Add libacl _at function variants 2026-06-23 13:36:59 +02:00
libacl.pc.in Add License variable to pkg-config file 2025-05-12 08:30:01 +02:00
Makefile.am Fix some compiler warnings 2026-06-28 22:44:30 +02:00
README doc: drop obsolete PORTING guide 2024-01-13 21:20:05 -05:00

Access control list package README
__________________________________

Package home: https://savannah.nongnu.org/projects/acl

See the file doc/INSTALL for build, installation and post-
install configuration steps.

Refer to the acl(5) manual page for general access control list
information and references to other related manual pages.