more patches
[linux-2.6.git] / linux-2.6-640-netlink-audit-hack.patch
1 diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
2 index 1438a1d..ce66270 100644
3 --- a/net/netlink/af_netlink.c
4 +++ b/net/netlink/af_netlink.c
5 @@ -447,6 +447,11 @@ static int netlink_create(struct net *net, struct socket *sock, int protocol,
6         if (protocol < 0 || protocol >= MAX_LINKS)
7                 return -EPROTONOSUPPORT;
8  
9 +#ifndef CONFIG_AUDIT
10 +       if (protocol == NETLINK_AUDIT)
11 +               return -EPROTONOSUPPORT;
12 +#endif
13 +
14         netlink_lock_table();
15  #ifdef CONFIG_MODULES
16         if (!nl_table[protocol].registered) {