mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Make changes needed for new demo
This commit is contained in:
parent
c3440d040c
commit
e6b7c16a53
13 changed files with 96 additions and 47 deletions
|
@ -419,6 +419,7 @@ int unveil(const char *path, const char *permissions) {
|
|||
// if the host environment enables unveil() to impose true security
|
||||
// restrictions because the default behavior is to silently succeed
|
||||
// so that programs will err on the side of working if distributed.
|
||||
if (permissions) return einval();
|
||||
if (IsOpenbsd()) return 0;
|
||||
if (landlock_abi_version != -1) {
|
||||
_unassert(landlock_abi_version >= 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue