Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935716 - sys-apps/sandbox fails to handle utimensat(..., AT_EMPTY_PATH) (was: sys-apps/systemd-256.1 fails tests with sandbox enabled)
Summary: sys-apps/sandbox fails to handle utimensat(..., AT_EMPTY_PATH) (was: sys-apps...
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-07-07 16:16 UTC by Mike Gilbert
Modified: 2025-01-14 04:38 UTC (History)
2 users (show)

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


Attachments
Test log (testlog.txt.gz,831.65 KB, application/gzip)
2024-07-07 16:16 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2024-07-07 16:16:43 UTC
Created attachment 897280 [details]
Test log

These tests pass with FEATURES="-usersandbox -sandbox".

> Summary of Failures:
> 
>  939/1629 systemd:test / test-async                FAIL 0.25s killed by signal 6 SIGABRT
>  948/1629 systemd:test / test-fd-util              FAIL 0.29s killed by signal 6 SIGABRT
>  955/1629 systemd:test / test-mount-util           FAIL 0.24s killed by signal 6 SIGABRT
> 1000/1629 systemd:core / test-path                 FAIL 0.45s killed by signal 6 SIGABRT
> 1040/1629 systemd:test / test-condition            FAIL 0.30s killed by signal 6 SIGABRT
> 1055/1629 systemd:test / test-dirent-util          FAIL 0.28s killed by signal 6 SIGABRT
> 1076/1629 systemd:test / test-fs-util              FAIL 0.31s killed by signal 6 SIGABRT
> 1078/1629 systemd:test / test-glob-util            FAIL 0.31s killed by signal 6 SIGABRT
> 1094/1629 systemd:test / test-exec-util            FAIL 1.37s killed by signal 6 SIGABRT
> 1109/1629 systemd:test / test-mkdir                FAIL 0.28s killed by signal 6 SIGABRT
> 1149/1629 systemd:test / test-stat-util            FAIL 0.27s killed by signal 6 SIGABRT
> 1158/1629 systemd:test / test-tmpfile-util         FAIL 0.31s killed by signal 6 SIGABRT
> 1166/1629 systemd:test / test-xattr-util           FAIL 0.26s killed by signal 6 SIGABRT
> 1169/1629 systemd:libsystemd / test-event          FAIL 0.24s killed by signal 6 SIGABRT
> 1221/1629 systemd:libsystemd / test-bus-watch-bind FAIL 1.08s killed by signal 6 SIGABRT
> 
> Ok:                 1592
> Expected Fail:      0   
> Fail:               15  
> Unexpected Pass:    0   
> Skipped:            22  
> Timeout:            0
Comment 1 Paolo Pedroni 2024-11-04 17:14:32 UTC
FEATURES=-usersandbox is enough to pass tests with sys-apps/systemd-256.7
Comment 2 Mike Gilbert gentoo-dev 2024-11-04 18:43:47 UTC
I suspect this commit is triggering a bug in sandbox.

https://github.com/systemd/systemd/commit/973464ad0e1f4aabdc9f13e91af2dd8ac316d872

We probably need to teach sandbox to deal with utimensat(..., AT_EMPTY_PATH).
Comment 3 Larry the Git Cow gentoo-dev 2024-11-04 19:15:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=69000bb059a57560762b979e7957f96decb25f10

commit 69000bb059a57560762b979e7957f96decb25f10
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-11-04 19:02:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-11-04 19:02:51 +0000

    Fix behavior of utimensat(..., AT_EMPTY_PATH)
    
    Bug: https://bugs.gentoo.org/935716
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 libsandbox/libsandbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2024-11-04 19:37:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e039f30e7e209c52d51254ebb51241f9704be224

commit e039f30e7e209c52d51254ebb51241f9704be224
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-11-04 19:35:23 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-11-04 19:35:40 +0000

    sys-apps/sandbox: add 2.40
    
    Closes: https://bugs.gentoo.org/935716
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/sandbox/Manifest            |  1 +
 sys-apps/sandbox/sandbox-2.40.ebuild | 64 ++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2025-01-14 04:38:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=c603a83d4699861cefd1da38fb94c0025891553d

commit c603a83d4699861cefd1da38fb94c0025891553d
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-11-04 19:02:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-11-04 19:14:39 +0000

    Fix behavior of utimensat(..., AT_EMPTY_PATH)
    
    Bug: https://bugs.gentoo.org/935716
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    (cherry picked from commit 69000bb059a57560762b979e7957f96decb25f10)

 libsandbox/libsandbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)