bytecodealliance / bytecodealliance/rustix

Protection Keys Implementation?

Open
#1,529 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
2.1k
Forks
294
Avg merge
4h 7m
Merged PRs (30d)
2

Description

pkey could be useful to implement in-proc sandboxes.

ref: https://man7.org/linux/man-pages/man7/pkeys.7.html

```c
int pkey_mprotect(size_t size;
void addr[size], size_t size, int prot, int pkey);
int pkey_alloc(unsigned int flags, unsigned int access_rights);
int pkey_free(int pkey);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.