Skip to content

Add openat2 support, update to version 1.9.4

Mark Hatle yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5openat2: Implement openat2 wrapperports/linux/openat2/guts/openat2.c ports/linux/pseudo_wrappers.c test/test-syscall.c+182 -140 replies
2/5makewrappers/openat2: Add preserve_path optionmakewrappers ports/linux/openat2/guts/openat2.c ports/linux/openat2/wrapfuncs.in +1 more+49 -180 replies
3/5test: Add openat2 test casestest/test-openat2-func-chroot.sh test/test-openat2-func.c test/test-openat2-func.sh +3 more+645 -00 replies
4/5test: Add renameat2 test casestest/test-renameat2-chroot.sh test/test-renameat2.c test/test-renameat2.sh+285 -00 replies
5/5Makefile.in: Bump version to 1.9.4Makefile.in+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Add openat2 support, update to version 1.9.4

Thanks to Richard, it looks like we have a working openat2 implementation.

There is a know issue where it appears to be able to escape the chroot, I don't know if this is expected behavior for the call or not. But for our Yocto Project workflow this should be ok. (Since we're only emulating chroot semantics, escaping from the chroot is not a security issue! There a multiple ways to escape or by-pass the emulation and pseudo should not be used for this type of security.)

I've also attempted to add test cases for the functionality, both the function call and syscall versions of openat2.

Finally we're bumping the release version to 1.9.4 (assuming no issues in the review of these changes.)

Mark Hatle (4):
openat2: Implement openat2 wrapper
test: Add openat2 test cases
test: Add renameat2 test cases
Makefile.in: Bump version to 1.9.4

Richard Purdie (1):
makewrappers/openat2: Add preserve_path option

 Makefile.in                         |   2 +-
 makewrappers                        |  18 ++-
 ports/linux/openat2/guts/openat2.c  | 198 ++++++++++++++++++++++--
 ports/linux/openat2/wrapfuncs.in    |   2 +-
 ports/linux/pseudo_wrappers.c       |   3 +
 templates/wrapfuncs.c               |   1 +
 test/test-openat2-func-chroot.sh    |  18 +++
 test/test-openat2-func.c            | 274 +++++++++++++++++++++++++++++++++
 test/test-openat2-func.sh           |  18 +++
 test/test-openat2-syscall-chroot.sh |  18 +++
 test/test-openat2-syscall.c         | 299 ++++++++++++++++++++++++++++++++++++
 test/test-openat2-syscall.sh        |  18 +++
 test/test-renameat2-chroot.sh       |  11 ++
 test/test-renameat2.c               | 263 +++++++++++++++++++++++++++++++
 test/test-renameat2.sh              |  11 ++
 test/test-syscall.c                 |   9 +-
 16 files changed, 1146 insertions(+), 17 deletions(-)
 create mode 100755 test/test-openat2-func-chroot.sh
 create mode 100644 test/test-openat2-func.c
 create mode 100755 test/test-openat2-func.sh
 create mode 100755 test/test-openat2-syscall-chroot.sh
 create mode 100644 test/test-openat2-syscall.c
 create mode 100755 test/test-openat2-syscall.sh
 create mode 100755 test/test-renameat2-chroot.sh
 create mode 100644 test/test-renameat2.c
 create mode 100755 test/test-renameat2.sh
Signature · 1 line
1.8.3.1