Just add a prctr() that makes execve() behave like this new execve_nosecurity(), that should do it. Or better, fix up the whole mess so that this whole issue isn't here at all.
If you want to make things more secure, simplify, don't add extra complexion like this.
Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds