netlink.c (2fc2991175bf77395e6b15fe6b2304d3bf72da40) netlink.c (27a884dc3cb63b93c2b3b643f5b31eed5f8a4d26)
1/*
2 * Netlink event notifications for SELinux.
3 *
4 * Author: James Morris <jmorris@redhat.com>
5 *
6 * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 52 unchanged lines hidden (view full) ---

61 default:
62 BUG();
63 }
64}
65
66static void selnl_notify(int msgtype, void *data)
67{
68 int len;
1/*
2 * Netlink event notifications for SELinux.
3 *
4 * Author: James Morris <jmorris@redhat.com>
5 *
6 * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 52 unchanged lines hidden (view full) ---

61 default:
62 BUG();
63 }
64}
65
66static void selnl_notify(int msgtype, void *data)
67{
68 int len;
69 unsigned char *tmp;
69 sk_buff_data_t tmp;
70 struct sk_buff *skb;
71 struct nlmsghdr *nlh;
72
73 len = selnl_msglen(msgtype);
74
75 skb = alloc_skb(NLMSG_SPACE(len), GFP_USER);
76 if (!skb)
77 goto oom;

--- 38 unchanged lines hidden ---
70 struct sk_buff *skb;
71 struct nlmsghdr *nlh;
72
73 len = selnl_msglen(msgtype);
74
75 skb = alloc_skb(NLMSG_SPACE(len), GFP_USER);
76 if (!skb)
77 goto oom;

--- 38 unchanged lines hidden ---