From: Daniel Lezcano <[EMAIL PROTECTED]>

This patch fixes export symbol for:
        xfrm_audit_policy_add
        xfrm_audit_policy_delete
        xfrm_audit_state_add
        xfrm_audit_state_delete
That allows xfrm_user and af_key to be compiled as module

I didn't used EXPORT_SYMBOL_GPL to be consistent with the rest
of the code.

Signed-off-by: Daniel Lezcano <[EMAIL PROTECTED]>
---
 net/xfrm/xfrm_policy.c |    2 ++
 net/xfrm/xfrm_state.c  |    3 +++
 2 files changed, 5 insertions(+)

Index: net-2.6.24/net/xfrm/xfrm_policy.c
===================================================================
--- net-2.6.24.orig/net/xfrm/xfrm_policy.c
+++ net-2.6.24/net/xfrm/xfrm_policy.c
@@ -2341,6 +2341,7 @@
        xfrm_audit_common_policyinfo(xp, audit_buf);
        audit_log_end(audit_buf);
 }
+EXPORT_SYMBOL(xfrm_audit_policy_add);
 
 void
 xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, u32 auid, u32 sid)
@@ -2357,6 +2358,7 @@
        xfrm_audit_common_policyinfo(xp, audit_buf);
        audit_log_end(audit_buf);
 }
+EXPORT_SYMBOL(xfrm_audit_policy_delete);
 #endif
 
 #ifdef CONFIG_XFRM_MIGRATE
Index: net-2.6.24/net/xfrm/xfrm_state.c
===================================================================
--- net-2.6.24.orig/net/xfrm/xfrm_state.c
+++ net-2.6.24/net/xfrm/xfrm_state.c
@@ -1865,6 +1865,7 @@
                         (unsigned long)x->id.spi, (unsigned long)x->id.spi);
        audit_log_end(audit_buf);
 }
+EXPORT_SYMBOL(xfrm_audit_state_add);
 
 void
 xfrm_audit_state_delete(struct xfrm_state *x, int result, u32 auid, u32 sid)
@@ -1883,4 +1884,6 @@
                         (unsigned long)x->id.spi, (unsigned long)x->id.spi);
        audit_log_end(audit_buf);
 }
+EXPORT_SYMBOL(xfrm_audit_state_delete);
+
 #endif /* CONFIG_AUDITSYSCALL */

-- 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to