v0.5.2 -- '"Will you walk into my parlour?" said a spider to a fly.'
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 anO_PATH
resolver would cache the result to avoid doing needless test runs of
openat2(2). However, this causes issues whenpathrs-liteis being used by
a program that applies new seccomp-bpf filters onto itself -- if the filter
deniesopenat2(2)then we would return that error rather than falling back
to theO_PATHresolver. To resolve this issue, we no longer cache the
result ifopenat2(2)was successful, only if there was an error. - A file descriptor leak in our
openat2wrapper (when doing the necessary
dupforRESOLVE_IN_ROOT) has been removed.
Thanks to the following contributors for making this release possible:
- Aleksa Sarai cyphar@cyphar.com
- Li Fubang lifubang@acmcoder.com
Signed-off-by: Aleksa Sarai cyphar@cyphar.com