a shared library to hijack+limit chmod() based on a path regex