Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946793 - sys-apps/sandbox mistreats faccessat with AT_EMPTY_PATH (sys-apps/systemd-257.1 fails test-fs-util with FEATURES=usersandbox)
Summary: sys-apps/sandbox mistreats faccessat with AT_EMPTY_PATH (sys-apps/systemd-257...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-21 20:58 UTC by Mike Gilbert
Modified: 2025-01-14 04:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2024-12-21 20:58:34 UTC
The access_fd function in systemd-257 calls faccessat(..., "", ..., AT_EMPTY_PATH). libsandbox intercepts this and returns ENOENT.
Comment 1 Larry the Git Cow gentoo-dev 2024-12-22 03:40:59 UTC
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(-)
Comment 2 Larry the Git Cow gentoo-dev 2024-12-22 04:07:02 UTC
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(+)
Comment 3 Larry the Git Cow gentoo-dev 2025-01-14 04:38:10 UTC
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(-)