chore(deps): update module cyphar.com/go-pathrs to v0.2.5#709
Conversation
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
|
Hi @red-hat-konflux[bot]. Thanks for your PR. I'm waiting for a validatedpatterns member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mbaldessari, red-hat-konflux[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR contains the following updates:
v0.2.4→v0.2.5Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
cyphar/libpathrs (cyphar.com/go-pathrs)
v0.2.5: libpathrs v0.2.5 -- "Or, to save on postage, I'll just poison him with this!"Compare Source
Breaking
pathrs_inroot_hardlinkandpathrs_inroot_symlinkhave been switched tousing the standard argument order from their respective system calls
(previously the order was swapped, which lead to possible confusion).
versioning) but rebuilt programs will need to adjust their argument order.
orders swapped to match the C API and so will also need to be updated when
rebuilding. This is a very important point! Users must ensure that they
use pre-
0.2.5bindings with pre-0.2.5libpathrs library installs, andpost-
0.2.5bindings with post-0.2.5library installs. Mixing andmatching them will cause bugs (most likely spurious
ENOENTerrors).pathrs_inroot_hardlinknow accepts both anold_root_fdandnew_root_fd. At the moment, callers must pass the same value to botharguments (this means the same numeric file descriptor value, not just a
reference to the same underlying file).
pathrs_inroot_hardlinkhave not hadtheir APIs changed, and so they still only permit operating within a
single root.
pathrs_inroot_renamealso now accepts both anold_root_fdandnew_root_fd, with the same caveats aspathrs_inroot_hardlinkabove.pathrs_inroot_renamehave not had theirAPIs changed, and so they still only permit operating within a single
root.
RenameFlagsis now backed by au64(instead oflibc::c_uint) so that wecan accommodate future extension bits beyond the kernel's current 32-bit ABI.
Rust callers using
RenameFlags::bits()or storing the raw value will needto adjust their types.
pathrs_inroot_renamenow also takes auint64_t, andthus the the Go
(*Root).Renamewrapper takes auint64as well.OpenFlagsis now backed by au64(instead oflibc::c_int), as recentkernel changes such as
OPENAT2_REGULARwill likely start to use some of theupper flag bits available from
openat2(2). This has an impact on all C APIs(and thus Go bindings) that accept
OpenFlagsarguments (we do provide oldsymbol versions to ease the transition):
pathrs_reopenpathrs_inroot_openpathrs_inroot_creatpathrs_proc_openpathrs_proc_openatAdded
pathrs_versionAPI that provides runtime versioninformation, which loosely matches other libraries like
libseccomp. The APIis based on extensible structs, so we can add more information here in the
future.
install.shnow supports--disable-staticand--disable-dynamicto limitwhat files are installed (their
--enable-*inverses are also available forcompleteness, but they both are enabled by default).
Fixed
Containers often have
/proc/sysovermounted with a read-only mount to avoidcontainer escapes, this caused the
O_PATHresolver to panic because thehardened procfs lookup for
/proc/sys/fs/protected_symlinkswould fail. Wenow conservatively assume that
fs.protected_symlinksis enabled if wecannot access the file for any reason.
This also causes attempts to access
/proc/sysfiles usingProcfsHandletoalso fail (by design). In the future we plan to provide some quality-of-life
improvements to permit access in those cases, but at the moment users need to
be aware that those kinds of accesses can fail.
Root::readlinkandProcfsHandle::readlinkwould previously returnENOENTif the target path existed but was not a symlink. This occurredbecause of a peculiar asymmetry in the kernel APIs for
readlinkat(2), butusers found it confusing and so we now remap the error in that case to
EINVAL(as you would get fromreadlink(2)with a path). This will make iteasier to distinguish the "target path does not exist" and "target path is
not a symlink" cases.
Thanks to the following contributors who made this release possible:
Signed-off-by: Aleksa Sarai cyphar@cyphar.com
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.