summaryrefslogtreecommitdiff
path: root/system/hexec/README
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-11-20 13:29:40 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-22 01:14:17 +0700
commitff916d1b9313492d4f9bf0dadb56dbeb2f2540c6 (patch)
treeccc5b9ec02830af37a47f90ecc26355078435ef6 /system/hexec/README
parent2c6182031bb3bdf1965914247103b255abbb8f62 (diff)
downloadslackbuilds-ff916d1b9313492d4f9bf0dadb56dbeb2f2540c6.tar.gz
system/hexec: Added (hook into exec calls)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/hexec/README')
-rw-r--r--system/hexec/README12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/hexec/README b/system/hexec/README
new file mode 100644
index 0000000000..c073d38384
--- /dev/null
+++ b/system/hexec/README
@@ -0,0 +1,12 @@
+hexec (hook into exec calls)
+
+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.
+
+As an example: hexec -name ls -exec echo {} \; bash
+
+This will run a shell, but any time you try to run "ls", you'll run
+"echo" instead. The syntax is similar to "find"; see the man page for
+details.