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

Enhancement. we need secure memory zone for started apps #4185

Closed
osevan opened this issue Apr 13, 2021 · 4 comments
Closed

Enhancement. we need secure memory zone for started apps #4185

osevan opened this issue Apr 13, 2021 · 4 comments

Comments

@osevan
Copy link

osevan commented Apr 13, 2021

https://www.phoronix.com/scan.php?page=news_item&px=memfd_secret-Secret-Linux-RAM

New syscall is available for new kernel.

@rusty-snake
Copy link
Collaborator

For what is it good? Can you explain more details what you think. How should it look like ( --secmem=5,512 fd=5, 512mb) and how it should work? Why does the sandboxed program create these zone not by itself? How does it help to sandbox the program?

this ability to create secret memory areas on the system is disabled by default unless a special option is passed at boot time.

Given that, it's possible we might see this new secret memory area system call introduced as part of the upcoming Linux 5.13 cycle

Will still take some time until users get this.

@osevan
Copy link
Author

osevan commented Apr 13, 2021

I thought, when secret memory reserved somewhere by firejail sandbox,other sandbox process cannot access in nemory each other.

....

@rusty-snake
Copy link
Collaborator

And then we LD_PRELOAD a malloc that uses this secure memory?

The sandbox protects the system from bad actions inside the sandbox. There is no protection for the sandbox.

@rusty-snake
Copy link
Collaborator

As long as nobody can say how we can use this, I close here.

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