From 95e743197047cc4c2550563ea8ef323c9b1230fd Mon Sep 17 00:00:00 2001 From: Nathan Angelacos Date: Sun, 9 Nov 2008 00:27:32 +0000 Subject: 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 --- acf-hooks.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 acf-hooks.lua (limited to 'acf-hooks.lua') 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 " +} +]]-- -- cgit v1.2.3