diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 30b252a1fb61..4a3f28d2ca65 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -962,14 +962,17 @@ static void audit_receive(struct sk_buff *skb) | |||
962 | static int __init audit_init(void) | 962 | static int __init audit_init(void) |
963 | { | 963 | { |
964 | int i; | 964 | int i; |
965 | struct netlink_kernel_cfg cfg = { | ||
966 | .input = audit_receive, | ||
967 | }; | ||
965 | 968 | ||
966 | if (audit_initialized == AUDIT_DISABLED) | 969 | if (audit_initialized == AUDIT_DISABLED) |
967 | return 0; | 970 | return 0; |
968 | 971 | ||
969 | printk(KERN_INFO "audit: initializing netlink socket (%s)\n", | 972 | printk(KERN_INFO "audit: initializing netlink socket (%s)\n", |
970 | audit_default ? "enabled" : "disabled"); | 973 | audit_default ? "enabled" : "disabled"); |
971 | audit_sock = netlink_kernel_create(&init_net, NETLINK_AUDIT, 0, | 974 | audit_sock = netlink_kernel_create(&init_net, NETLINK_AUDIT, |
972 | audit_receive, NULL, THIS_MODULE); | 975 | THIS_MODULE, &cfg); |
973 | if (!audit_sock) | 976 | if (!audit_sock) |
974 | audit_panic("cannot initialize netlink socket"); | 977 | audit_panic("cannot initialize netlink socket"); |
975 | else | 978 | else |