Setting tag linux-2.6-22-50
[linux-2.6.git] / linux-2.6-640-netlink-audit-hack.patch
1 diff -Nurp linux-2.6.22-630/net/netlink/af_netlink.c linux-2.6.22-640/net/netlink/af_netlink.c
2 --- linux-2.6.22-630/net/netlink/af_netlink.c   2008-04-09 18:46:27.000000000 +0200
3 +++ linux-2.6.22-640/net/netlink/af_netlink.c   2008-05-05 19:20:02.000000000 +0200
4 @@ -426,6 +426,11 @@ static int netlink_create(struct socket 
5         if (protocol<0 || protocol >= MAX_LINKS)
6                 return -EPROTONOSUPPORT;
7  
8 +#ifndef CONFIG_AUDIT
9 +       if (protocol == NETLINK_AUDIT)
10 +               return -EPROTONOSUPPORT;
11 +#endif
12 +
13         netlink_lock_table();
14  #ifdef CONFIG_KMOD
15         if (!nl_table[protocol].registered) {