summaryrefslogtreecommitdiffstats
path: root/acf-hooks.lua
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@tetrasec.net>2008-11-09 00:27:32 +0000
committerNathan Angelacos <nangel@tetrasec.net>2008-11-09 00:27:32 +0000
commit95e743197047cc4c2550563ea8ef323c9b1230fd (patch)
treeef2f16f60fd30b3bdd405a177aa3ff3e3125556e /acf-hooks.lua
parent004f2adfc85bed299c762e019120732fe90d597d (diff)
downloadacf-core-95e743197047cc4c2550563ea8ef323c9b1230fd.tar.bz2
acf-core-95e743197047cc4c2550563ea8ef323c9b1230fd.tar.xz
per-controller auditing now allowed via acf-hooks.lua
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1582 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'acf-hooks.lua')
-rw-r--r--acf-hooks.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/acf-hooks.lua b/acf-hooks.lua
new file mode 100644
index 0000000..203733a
--- /dev/null
+++ b/acf-hooks.lua
@@ -0,0 +1,15 @@
+-- This file is loaded into self.conf.app_hooks as lua source code
+-- The purpose is to add user-specified hooks into the acf code
+
+-- or functions. For functions, three variables are passed:
+-- self, CONFFILE, and TEMPFILE
+
+--[[ This is commented out example code..
+
+tinydns={
+ audit_precommit = function (self, CONFFILE, TEMPFILE)
+ os.execute("echo this is tinydns's precommit command >> /var/log/acf.log")
+ end
+ audit_postcommit = "echo 'this is the tinydns postcommit command.' >>/var/log/acf.log "
+}
+]]--