summaryrefslogtreecommitdiffstats
path: root/isys/isys.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-08-22 20:17:49 +0000
committerPeter Jones <pjones@redhat.com>2006-08-22 20:17:49 +0000
commit359c4c2b29d4be0c3456d92ca908da0bc0497089 (patch)
treed0db7a3b56efb5e7abb8f3d741f5bc2eac38754c /isys/isys.c
parent1b7cfd62f906f882c9ebe84822643298c883220b (diff)
downloadanaconda-359c4c2b29d4be0c3456d92ca908da0bc0497089.tar.gz
anaconda-359c4c2b29d4be0c3456d92ca908da0bc0497089.tar.xz
anaconda-359c4c2b29d4be0c3456d92ca908da0bc0497089.zip
- add a simple audit daemon
Diffstat (limited to 'isys/isys.c')
-rw-r--r--isys/isys.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c
index f305d5efd..d494c4218 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -59,6 +59,7 @@
#include "lang.h"
#include "wireless.h"
#include "eddsupport.h"
+#include "auditd.h"
#ifndef CDROMEJECT
#define CDROMEJECT 0x5309
@@ -118,6 +119,7 @@ static PyObject * isWireless(PyObject * s, PyObject * args);
static PyObject * doProbeBiosDisks(PyObject * s, PyObject * args);
static PyObject * doGetBiosDisk(PyObject * s, PyObject * args);
static PyObject * doSegvHandler(PyObject *s, PyObject *args);
+static PyObject * doAuditDaemon(PyObject *s);
static PyMethodDef isysModuleMethods[] = {
{ "ejectcdrom", (PyCFunction) doEjectCdrom, METH_VARARGS, NULL },
@@ -172,6 +174,7 @@ static PyMethodDef isysModuleMethods[] = {
{ "biosDiskProbe", (PyCFunction) doProbeBiosDisks, METH_VARARGS,NULL},
{ "getbiosdisk",(PyCFunction) doGetBiosDisk, METH_VARARGS,NULL},
{ "handleSegv", (PyCFunction) doSegvHandler, METH_VARARGS, NULL },
+ { "auditdaemon", (PyCFunction) doAuditDaemon, METH_NOARGS, NULL },
{ NULL, NULL, 0, NULL }
} ;
@@ -1307,4 +1310,10 @@ static PyObject * doSegvHandler(PyObject *s, PyObject *args) {
exit(1);
}
+static PyObject * doAuditDaemon(PyObject *s) {
+ audit_daemonize();
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
/* vim:set shiftwidth=4 softtabstop=4: */