Skip to content

Commit

Permalink
audit: export symbol for use with xt_AUDIT
Browse files Browse the repository at this point in the history
When xt_AUDIT is built as a module, modpost reports a problem.

	MODPOST 322 modules
	ERROR: "audit_enabled" [net/netfilter/x_tables.ko] undefined!
	WARNING: modpost: Found 1 section mismatch(es).

Cc: Thomas Graf <[email protected]>
Signed-off-by: Jan Engelhardt <[email protected]>
  • Loading branch information
Jan Engelhardt committed Jan 18, 2011
1 parent f1e231a commit ae9d67a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,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;

Expand Down

0 comments on commit ae9d67a

Please sign in to comment.