Skip to content

v0.5.2 -- '"Will you walk into my parlour?" said a spider to a fly.'

Choose a tag to compare

@cyphar cyphar released this 19 Nov 13:44
· 67 commits to main since this release
v0.5.2
6311ca8

This release includes a few more minor improvements to pathrs-lite,
mainly involving the fallback logic in tools which configure seccomp
profiles during execution (like runc) and to fix a file descriptor leak.

Fixed

  • Our logic for deciding whether to use openat2(2) or fallback to an O_PATH
    resolver would cache the result to avoid doing needless test runs of
    openat2(2). However, this causes issues when pathrs-lite is being used by
    a program that applies new seccomp-bpf filters onto itself -- if the filter
    denies openat2(2) then we would return that error rather than falling back
    to the O_PATH resolver. To resolve this issue, we no longer cache the
    result if openat2(2) was successful, only if there was an error.
  • A file descriptor leak in our openat2 wrapper (when doing the necessary
    dup for RESOLVE_IN_ROOT) has been removed.

Thanks to the following contributors for making this release possible:

Signed-off-by: Aleksa Sarai cyphar@cyphar.com