Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work with libcap v1.2.72 #91

Open
shoenig opened this issue Nov 12, 2024 · 0 comments
Open

does not work with libcap v1.2.72 #91

shoenig opened this issue Nov 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@shoenig
Copy link
Owner

shoenig commented Nov 12, 2024

libcap v1.2.72 contains a substantial rewrite, and seems to be broken when CGO is in use. The failures below are not from test case assertions, they're caused by the child process created by Go (which is landlock'd) crashing.

https://sites.google.com/site/fullycapable/release-notes-for-libcap#h.ulglddlojmy0

=== RUN   TestLocker_reads
    landlock_linux_test.go:750: TEST[read top dir] (arg: -test.run=TestLocker_reads/read top dir)
                |> failed to read /proc/4152/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_reads (0.00s)
=== RUN   TestLocker_writes
    landlock_linux_test.go:750: TEST[none] (arg: -test.run=TestLocker_writes/none)
                |> failed to read /proc/4158/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_writes (0.00s)
=== RUN   TestLocker_truncate
    landlock_linux_test.go:750: TEST[truncate_none] (arg: -test.run=TestLocker_truncate/truncate_none)
                |> failed to read /proc/4164/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_truncate (0.00s)
=== RUN   TestLocker_creates
    landlock_linux_test.go:750: TEST[none] (arg: -test.run=TestLocker_creates/none)
                |> failed to read /proc/4170/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_creates (0.00s)
=== RUN   TestLocker_executes
    landlock_linux_test.go:750: TEST[bash_x] (arg: -test.run=TestLocker_executes/bash_x)
                |> failed to read /proc/4176/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_executes (0.01s)
=== RUN   TestLocker_deletes
    landlock_linux_test.go:750: TEST[none] (arg: -test.run=TestLocker_deletes/none)
                |> failed to read /proc/4182/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_deletes (0.00s)
=== RUN   TestLocker_symlink
    landlock_linux_test.go:750: TEST[read_escape] (arg: -test.run=TestLocker_symlink/read_escape)
                |> failed to read /proc/4188/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_symlink (0.00s)
=== RUN   TestLocker_hardlink
    landlock_linux_test.go:750: TEST[create_escape_link] (arg: -test.run=TestLocker_hardlink/create_escape_link)
                |> failed to read /proc/4194/task - aborting


    landlock_linux_test.go:751:
        landlock_linux_test.go:751: expected nil error
        ↪ error: signal: killed
--- FAIL: TestLocker_hardlink (0.00s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant