hexec can be used to hook into exec system calls. It evaluates a user defined expression against all hooked exec calls. This expression can contain simple path checks (e.g. -path "*/name") and even complex bash scripts.
Be the first to post a text review of hexec. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Version 0.2.1 - Fixed a bug in the handling of error codes when orig_execve fails Version 0.2.0 - Reworked processing of placeholders - Implemented -name expression - Implemented -contains expression - Implemented -sh action - {n} can now be used as placeholder to get the number of arguments from the original exec call - Better error reporting with -exec expression - --help and -h options are working now - --version and -v options are working now - More detailed documentation in man page (espessially the placeholders part) - Added debian rules and build-deb.sh to build debian packages Version 0.1.0 - Initial release. Many features are still missing.
Version 0.2.0 - Reworked processing of placeholders - Implemented -name expression - Implemented -contains expression - Implemented -sh action - {n} can now be used as placeholder to get the number of arguments from the original exec call - Better error reporting with -exec expression - --help and -h options are working now - --version and -v options are working now - More detailed documentation in man page (espessially the placeholders part) - Added debian rules and build-deb.sh to build debian packages Version 0.1.0 - Initial release. Many features are still missing.
The first release of hexec is out now. The basic features are implemented and can already be used. There is of course still a lot missing. If you feel that you have found a bug or a missing feature, use the sf.net bug tracking system or post into the forum. The initial reason to implement a tool like hexec was to ease the use of ccache on large projects. In my opinion it is too complicated and sometimes not possible to modify the PATH variable or the Makefiles of a project to enable ccache compilation. The idea was to have a tool that could be used to intercept all kinds of process executions and do whatever you want with the call. In the ccache example, we can simply redirect all gcc calls to ccache. ccache is just an example, there are of course much more possible uses for hexec. You could for example use it to log the calls to a specific program or even add/delete/modify arguments of program calls. I'd be happy if people come up with new ideas and post it to the forum.
Be the first person to add a text review.
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: