The access_fd function in systemd-257 calls faccessat(..., "", ..., AT_EMPTY_PATH). libsandbox intercepts this and returns ENOENT.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=c8491074bb094dbceb773eb1803ddc5f499ea67b commit c8491074bb094dbceb773eb1803ddc5f499ea67b Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-12-22 02:54:20 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-12-22 02:54:20 +0000 Fix handling of faccessat with AT_EMPTY_PATH Bug: https://bugs.gentoo.org/946793 Signed-off-by: Mike Gilbert <floppym@gentoo.org> libsandbox/libsandbox.c | 37 +++++++++++++++++------------------- libsandbox/libsandbox.h | 18 +++++++++--------- libsandbox/trace.c | 6 +++--- libsandbox/wrapper-funcs/faccessat.c | 2 +- tests/faccessat-1.sh | 7 +++++++ tests/faccessat.at | 1 + tests/test-skel-0.c | 3 ++- 7 files changed, 40 insertions(+), 34 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18706bc9a49f907a999c52cf9ea58ab92118b715 commit 18706bc9a49f907a999c52cf9ea58ab92118b715 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-12-22 03:51:02 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-12-22 04:06:38 +0000 sys-apps/sandbox: add 2.41 Closes: https://bugs.gentoo.org/946793 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/sandbox/Manifest | 1 + sys-apps/sandbox/sandbox-2.41.ebuild | 64 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=dacccb0b801a7a75267f674d219fb89393e862d3 commit dacccb0b801a7a75267f674d219fb89393e862d3 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-12-22 02:54:20 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-12-22 03:43:25 +0000 Fix handling of faccessat with AT_EMPTY_PATH Bug: https://bugs.gentoo.org/946793 Signed-off-by: Mike Gilbert <floppym@gentoo.org> (cherry picked from commit c8491074bb094dbceb773eb1803ddc5f499ea67b) libsandbox/libsandbox.c | 37 +++++++++++++++++------------------- libsandbox/libsandbox.h | 18 +++++++++--------- libsandbox/trace.c | 6 +++--- libsandbox/wrapper-funcs/faccessat.c | 2 +- tests/faccessat-1.sh | 7 +++++++ tests/faccessat.at | 1 + tests/test-skel-0.c | 3 ++- 7 files changed, 40 insertions(+), 34 deletions(-)