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

Is there interest in a feature gated memfd_secret backend? #13

Open
wucke13 opened this issue Dec 22, 2023 · 1 comment
Open

Is there interest in a feature gated memfd_secret backend? #13

wucke13 opened this issue Dec 22, 2023 · 1 comment

Comments

@wucke13
Copy link

wucke13 commented Dec 22, 2023

We are interested in having a memfd_secret based allocator, that uses memsec as fallback. So we figured it would make sense to ask, if this would be a functionality desired directly in memsec?

The basic ideas are:

  • provide runtime function to check for memfd_secret support (this we already have, on non-linux systems that is compile time known false)
  • if memfd_secret support is available, try memfd_secret + mmap to allocate
  • if that fails, fall back to the default

All that of course feature gated, not active by default.

@quininer
Copy link
Owner

I think it's good, would you like to open a PR?

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

No branches or pull requests

2 participants