So the only way would be to disallow embedding the library and lock the lib object with some meta table magic? And then rawset remains
I will follow your advice and just ignore that then. It seems strange however how much is so open and so accessible.