mbox series

[wrynose,0/2] acl: upgrade and restore ptest

Message ID 20261202064331.184073-1-dkelaiya@cisco.com
Headers show
Series acl: upgrade and restore ptest | expand

Message

From: Darsh Kelaiya <dkelaiya@cisco.com>

Upgrade ACL from 2.3.2 to 2.4.0 on Wrynose to address CVE-2026-54369 and
CVE-2026-54370.

This replaces the earlier three-patch CVE backport series [1] and
requests an exception to the stable release policy [6], following the
review [2].

The policy limits stable backports to bug and security fixes already
applied on master. Features are excluded, and generic recipe upgrades
are unlikely to be accepted. An exception needs a strong reason, such as
following the preferred upstream approach [6].

ACL 2.4.0 adds APIs and changes CLI behavior, linkage and internal
implementation alongside the security fixes. These changes go beyond
isolated fix backports and need consideration as part of this exception.

The original series adds 5,910 lines, including descriptor-relative
APIs, compatibility helpers and a replacement directory walker. It
already imports substantial parts of 2.4.0. Using the upstream release
avoids maintaining that extensive downstream patch stack and provides a
clearer baseline for review and future maintenance.

Upstream identifies 2.4.0 as the fixed release and recommends upgrading
even older distributions [4]. That recommendation and the extent of the
required backport are the grounds for requesting this exception.

Changelog and compatibility analysis for 2.3.2 to 2.4.0 [3][4]:

- API additions: four new _at functions provide directory-relative ACL
  operations and control over symlink following. The export list retains
  existing versioned symbols and adds ACL_1.3. Existing pathname APIs
  keep their symlink-following behavior, so upgrading alone does not
  harden callers of those pathname APIs. New declarations can clash with
  application helpers; the included GNU tar fix addresses that conflict.

- CLI behavior: getfacl -R and setfacl -R now visit symlinked directory
  arguments unless -P is used. With -P, command-line symlinks produce
  ELOOP instead of being silently skipped. Scripts relying on the old
  traversal or error behavior may need adjustment.

- Restore behavior: setfacl --restore -P enables hardened directory
  resolution and requires openat2 support. By default, builds with
  openat2 support warn about restores without -P; scripts that treat
  stderr output as failure may be affected. Unsupported AT_* fallback
  paths can require /proc/self/fd, so systems without a mounted /proc
  may see failures. The stronger restore resolution is opt-in.

- Other behavior fixes: invalid numeric UIDs and GIDs are rejected more
  strictly, errno handling and ACL-read retries change, and restore
  handles leading whitespace in filenames correctly. Restore --test
  stops changing permissions. Callers and scripts depending on the
  former invalid-input, diagnostic or dry-run behavior may observe
  differences.

- Linkage: libacl no longer links directly to libattr. Downstream code
  using libattr functions must link it explicitly. The recipe retains
  its attr build dependency for headers.

- Internal, test and documentation changes: helper symbols are renamed,
  the private walker is replaced, and compiler issues and dead code are
  cleaned up. The walker header remains private. Tests, manuals and
  German translations are updated; diagnostic text may change.

Use the OE-Core master upgrade [5], including the tar 1.35 helper rename
needed by the new libacl declarations. Remove the existing UID-lookup
and mixed-output test patches, whose fixes are included in 2.4.0.

Patch 2 backports the accepted master ptest correction [7]. ACL 2.4.0
renamed its tests from .test to .run, and test lists must be obtained
from the generated Makefile. Update the runner and package installation
accordingly, retaining the test exclusions from master. This restores
actual test execution instead of reporting success with no tests
installed.

References:

[1] https://patchwork.yoctoproject.org/project/oe-core/list/?series=52887&state=*
[2] https://lists.openembedded.org/g/openembedded-core/message/250965
[3] https://download.savannah.nongnu.org/releases/acl/acl-2.4.0.tar.gz
[4] https://www.openwall.com/lists/oss-security/2026/06/29/1
[5] https://git.openembedded.org/openembedded-core/commit/?id=2830d1319eec866947f4fa4a1ac16e2ea6584be5
[6] https://docs.yoctoproject.org/6.0/ref-manual/release-process.html#stable-release-process
[7] https://git.openembedded.org/openembedded-core/commit/?id=ac4adf69751680b1f1d33c61631c76e2cc446e42

Alexander Kanavin (2):
  acl: upgrade 2.3.2 -> 2.4.0
  acl: restore ptest

 ...0001-Avoid-acl_-prefix-for-functions.patch | 90 +++++++++++++++++++
 meta/recipes-extended/tar/tar_1.35.bb         | 22 ++---
 ...t_uid-fix-memory-wasting-loop-if-use.patch | 49 ----------
 ...isc.test-Don-t-mix-stdout-and-stderr.patch | 35 --------
 meta/recipes-support/attr/acl/run-ptest       |  2 +-
 .../attr/{acl_2.3.2.bb => acl_2.4.0.bb}       | 10 +--
 6 files changed, 106 insertions(+), 102 deletions(-)
 create mode 100644 meta/recipes-extended/tar/tar/0001-Avoid-acl_-prefix-for-functions.patch
 delete mode 100644 meta/recipes-support/attr/acl/0001-libmisc-__acl_get_uid-fix-memory-wasting-loop-if-use.patch
 delete mode 100644 meta/recipes-support/attr/acl/0001-test-misc.test-Don-t-mix-stdout-and-stderr.patch
 rename meta/recipes-support/attr/{acl_2.3.2.bb => acl_2.4.0.bb} (80%)