]> git.proxmox.com Git - wasi-libc.git/commit
Ignore rights in libpreopen. (#129)
authorDan Gohman <sunfish@mozilla.com>
Thu, 21 Nov 2019 23:49:51 +0000 (15:49 -0800)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2019 23:49:51 +0000 (15:49 -0800)
commit54102f06a975de1e6cf559b0414bd71dd30f5fbe
treec6b0f1fbf4e7ca293883e91bad3d4aeea0a706dd
parent8c9e1c64a85f1c390762e0453f207c47324bf45b
Ignore rights in libpreopen. (#129)

Don't ignore paths which don't have the required rights. This means
that if the lookup finds a path that doesn't have the required
rights, it'll just proceed to the actual operation which will fail
with `ENOTCAPABLE`.

Intuitively, use cases which would depend on having multiple
overlapping matching paths for a given lookup and intelligently
picking the one with the required rights seems like they should
be uncommon.

This is simpler overall, and requires less code.
libc-bottom-half/headers/public/wasi/libc-find-relpath.h
libc-bottom-half/libpreopen/libpreopen.c