I am getting compiler error while compiling my old kernel module which is using netlink functions.
int
init_module()
{
/* Initialize the Netlin
netlink_kernel_create(struct net *net, int unit, struct netlink_kernel_cfg *cfg)
struct netlink_kernel_cfg cfg = {
.groups = SELNLGRP_MAX,
.flags = NL_CFG_F_NONROOT_RECV,
};
selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, &cfg);
if (selnl == NULL)
panic("SELinux: Cannot create netlink socket.");