]> git.proxmox.com Git - wasi-libc.git/commit
Don't pre-check capabilities in `openat`. (#130)
authorDan Gohman <sunfish@mozilla.com>
Sun, 10 Nov 2019 14:39:00 +0000 (06:39 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2019 14:39:00 +0000 (06:39 -0800)
commitdeb8eae4184aaa78f540c1fb848a4a3e500adc8d
treeea63b99f1a407c2cea3fd6b2eca0fa88babfaf1f
parentca9046d8729a06700ac69a340e16217dfa250a4c
Don't pre-check capabilities in `openat`. (#130)

Rely on the WASI implementation to check capabilities flags, rather
than also checking them in the userspace `openat` implementation.

This code is admittedly getting fairly dense with `#ifdef`s, so it
may soon make sense to move this file out of the `cloudlibc`
directory and removing the upstream change markers.
libc-bottom-half/cloudlibc/src/libc/fcntl/openat.c