mseal_all()
mseal_all()
Posted Jan 22, 2024 0:44 UTC (Mon) by itsmycpu (guest, #139639)In reply to: mseal_all() by NYKevin
Parent article: mseal() gets closer
So the idea is that an app first creates any memory definitions it needs, and then, assuming it arrives at a point where it doesn't want to change or add anymore, at that point it calls mseal_all() to prevent any further unwanted or accidental modifications.
This assumes that there is way to do this without preventing the mere allocation of more memory. If that currently isn't possible, maybe it can be made possible.
I'm not sure if a C lib is in the best position to do this, the kernel might have a better overview of the process's resources, and the kernel might be in a better position to do this securely.
