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

Library for path canonicalization #314

Open
Sonicadvance1 opened this issue Aug 25, 2020 · 2 comments
Open

Library for path canonicalization #314

Sonicadvance1 opened this issue Aug 25, 2020 · 2 comments
Milestone

Comments

@Sonicadvance1
Copy link
Member

Sonicadvance1 commented Aug 25, 2020

With our rootfs implementation, we need to support path canonicalization with explicit support for the rootfs as the root directory.
Then on top of that a regular canonicalize that treats / as a rootfs as well.
This is required to support both so applications can't trick our path checking

eg: /proc/../cpuinfo would currently trick our emulation and get a real host `/proc/cpuinfo

eg: /usr/../../test.txt would escape the rootfs and load a test.txt in the same folder as the rootfs if one existed

@skmp
Copy link
Contributor

skmp commented Jan 22, 2021

At least one gvisor tests picks up this

@skmp skmp added this to the 2212 milestone Aug 10, 2022
@skmp skmp moved this to 🆕 Unplanned in Next Project Milestone Aug 18, 2022
@orowith2os
Copy link

fwiw bubblewrap might be of use here - Flatpak can use it and qemu-user-static (or a binfmt_misc executable of your choice) to emulate non-native arches easily, and it runs at (as fast as possible/native) speeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Unschedulled
Development

No branches or pull requests

3 participants