AUDIT: add source files to enable build on 2.6.35.13-91 kernel
Subsystems (3)
PATCH 1/4 AUDIT: add source files to enable build on 2.6.35.13-91 kernel
Core source files for the AUDIT target for 2.6.35.13-91 kernel.
Signed-off-by Mr Dash Four <[email protected]>
--- include/linux/audit.h | 2 + include/linux/netfilter/xt_AUDIT.h | 30 +++++ kernel/audit.c | 2 + net/netfilter/xt_AUDIT.c | 234 ++++++++++++++++++++++++++++++++++++ 4 files changed, 268 insertions(+), 0 deletions(-) create mode 100644 include/linux/netfilter/xt_AUDIT.h create mode 100644 net/netfilter/xt_AUDIT.c
include/linux/audit.h +2 -0
@@ -102,6 +102,8 @@#define AUDIT_EOE 1320/* End of multi-record event */ #define AUDIT_BPRM_FCAPS 1321/* Information about fcaps increasing perms */ #define AUDIT_CAPSET 1322/* Record showing argument to sys_capset */ +#define AUDIT_NETFILTER_PKT 1324/* Packets traversing netfilter chains */ +#define AUDIT_NETFILTER_CFG 1325/* Netfilter chain modifications */ #define AUDIT_AVC 1400/* SE Linux avc denial or grant */ #define AUDIT_SELINUX_ERR 1401/* Internal SE Linux Errors */
include/linux/netfilter/xt_AUDIT.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* Header file for iptables xt_AUDIT target +* +* (C) 2010-2011 Thomas Graf <[email protected]> +* (C) 2010-2011 Red Hat, Inc. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef _XT_AUDIT_TARGET_H +#define _XT_AUDIT_TARGET_H + +#include <linux/types.h> + +enum { +XT_AUDIT_TYPE_ACCEPT =0 , +XT_AUDIT_TYPE_DROP , +XT_AUDIT_TYPE_REJECT , + __XT_AUDIT_TYPE_MAX, +}; + +#define XT_AUDIT_TYPE_MAX (__XT_AUDIT_TYPE_MAX - 1) + +struct xt_audit_info { +__u8 type;/* XT_AUDIT_TYPE_* */ +}; + +#endif /* _XT_AUDIT_TARGET_H */
kernel/audit.c +2 -0
@@ -75,6 +75,8 @@ static int audit_initialized;int audit_enabled;int audit_ever_enabled; +EXPORT_SYMBOL_GPL (audit_enabled); +/* Default state when kernel boots without any parameters. */ static int audit_default;
net/netfilter/xt_AUDIT.c new file +234 -0
234 lines not on this page · raw message
Signature · 1 line
1.7.3.4