Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Network interface table. |
| 4 | * |
| 5 | * Network interfaces (devices) do not have a security field, so we |
| 6 | * maintain a table associating each interface with a SID. |
| 7 | * |
| 8 | * Author: James Morris <jmorris@redhat.com> |
| 9 | * |
| 10 | * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com> |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 11 | * Copyright (C) 2007 Hewlett-Packard Development Company, L.P. |
Paul Moore | 82c21bf | 2011-08-01 11:10:33 +0000 | [diff] [blame] | 12 | * Paul Moore <paul@paul-moore.com> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | */ |
| 14 | #include <linux/init.h> |
| 15 | #include <linux/types.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 16 | #include <linux/slab.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #include <linux/stddef.h> |
| 18 | #include <linux/kernel.h> |
| 19 | #include <linux/list.h> |
| 20 | #include <linux/notifier.h> |
| 21 | #include <linux/netdevice.h> |
| 22 | #include <linux/rcupdate.h> |
Eric W. Biederman | e9dc865 | 2007-09-12 13:02:17 +0200 | [diff] [blame] | 23 | #include <net/net_namespace.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
| 25 | #include "security.h" |
| 26 | #include "objsec.h" |
| 27 | #include "netif.h" |
| 28 | |
| 29 | #define SEL_NETIF_HASH_SIZE 64 |
| 30 | #define SEL_NETIF_HASH_MAX 1024 |
| 31 | |
Eric Paris | 338366c | 2008-04-18 17:38:22 -0400 | [diff] [blame] | 32 | struct sel_netif { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | struct list_head list; |
| 34 | struct netif_security_struct nsec; |
| 35 | struct rcu_head rcu_head; |
| 36 | }; |
| 37 | |
| 38 | static u32 sel_netif_total; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | static DEFINE_SPINLOCK(sel_netif_lock); |
| 40 | static struct list_head sel_netif_hash[SEL_NETIF_HASH_SIZE]; |
| 41 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 42 | /** |
| 43 | * sel_netif_hashfn - Hashing function for the interface table |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 44 | * @ns: the network namespace |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 45 | * @ifindex: the network interface |
| 46 | * |
| 47 | * Description: |
| 48 | * This is the hashing function for the network interface table, it returns the |
| 49 | * bucket number for the given interface. |
| 50 | * |
| 51 | */ |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 52 | static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | { |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 54 | return (((uintptr_t)ns + ifindex) & (SEL_NETIF_HASH_SIZE - 1)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 | } |
| 56 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 57 | /** |
| 58 | * sel_netif_find - Search for an interface record |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 59 | * @ns: the network namespace |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 60 | * @ifindex: the network interface |
| 61 | * |
| 62 | * Description: |
| 63 | * Search the network interface table and return the record matching @ifindex. |
| 64 | * If an entry can not be found in the table return NULL. |
| 65 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | */ |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 67 | static inline struct sel_netif *sel_netif_find(const struct net *ns, |
| 68 | int ifindex) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | { |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 70 | int idx = sel_netif_hashfn(ns, ifindex); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 71 | struct sel_netif *netif; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 73 | list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 74 | if (net_eq(netif->nsec.ns, ns) && |
| 75 | netif->nsec.ifindex == ifindex) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | return netif; |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 77 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | return NULL; |
| 79 | } |
| 80 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 81 | /** |
| 82 | * sel_netif_insert - Insert a new interface into the table |
| 83 | * @netif: the new interface record |
| 84 | * |
| 85 | * Description: |
| 86 | * Add a new interface record to the network interface hash table. Returns |
| 87 | * zero on success, negative values on failure. |
| 88 | * |
| 89 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | static int sel_netif_insert(struct sel_netif *netif) |
| 91 | { |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 92 | int idx; |
Eric Paris | 338366c | 2008-04-18 17:38:22 -0400 | [diff] [blame] | 93 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 94 | if (sel_netif_total >= SEL_NETIF_HASH_MAX) |
| 95 | return -ENOSPC; |
Eric Paris | 338366c | 2008-04-18 17:38:22 -0400 | [diff] [blame] | 96 | |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 97 | idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | list_add_rcu(&netif->list, &sel_netif_hash[idx]); |
| 99 | sel_netif_total++; |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 100 | |
| 101 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 102 | } |
| 103 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 104 | /** |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 105 | * sel_netif_destroy - Remove an interface record from the table |
| 106 | * @netif: the existing interface record |
| 107 | * |
| 108 | * Description: |
| 109 | * Remove an existing interface record from the network interface table. |
| 110 | * |
| 111 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 112 | static void sel_netif_destroy(struct sel_netif *netif) |
| 113 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | list_del_rcu(&netif->list); |
| 115 | sel_netif_total--; |
Lai Jiangshan | 690273f | 2011-03-18 12:03:19 +0800 | [diff] [blame] | 116 | kfree_rcu(netif, rcu_head); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 117 | } |
| 118 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 119 | /** |
| 120 | * sel_netif_sid_slow - Lookup the SID of a network interface using the policy |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 121 | * @ns: the network namespace |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 122 | * @ifindex: the network interface |
| 123 | * @sid: interface SID |
| 124 | * |
| 125 | * Description: |
lihao | 2c3d8df | 2020-07-07 12:00:04 +0800 | [diff] [blame] | 126 | * This function determines the SID of a network interface by querying the |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 127 | * security policy. The result is added to the network interface table to |
| 128 | * speedup future queries. Returns zero on success, negative values on |
| 129 | * failure. |
| 130 | * |
| 131 | */ |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 132 | static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | { |
Paul Moore | 9b80c36 | 2019-08-01 17:55:06 -0400 | [diff] [blame] | 134 | int ret = 0; |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 135 | struct sel_netif *netif; |
Paul Moore | 9b80c36 | 2019-08-01 17:55:06 -0400 | [diff] [blame] | 136 | struct sel_netif *new; |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 137 | struct net_device *dev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 138 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 139 | /* NOTE: we always use init's network namespace since we don't |
| 140 | * currently support containers */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 141 | |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 142 | dev = dev_get_by_index(ns, ifindex); |
Paul Moore | 71f1cb0 | 2008-01-29 08:51:16 -0500 | [diff] [blame] | 143 | if (unlikely(dev == NULL)) { |
peter enderborg | 0d3a115 | 2018-06-12 10:09:10 +0200 | [diff] [blame] | 144 | pr_warn("SELinux: failure in %s(), invalid network interface (%d)\n", |
| 145 | __func__, ifindex); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 146 | return -ENOENT; |
Paul Moore | 71f1cb0 | 2008-01-29 08:51:16 -0500 | [diff] [blame] | 147 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | spin_lock_bh(&sel_netif_lock); |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 150 | netif = sel_netif_find(ns, ifindex); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 151 | if (netif != NULL) { |
| 152 | *sid = netif->nsec.sid; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 153 | goto out; |
| 154 | } |
Paul Moore | 9b80c36 | 2019-08-01 17:55:06 -0400 | [diff] [blame] | 155 | |
| 156 | ret = security_netif_sid(&selinux_state, dev->name, sid); |
| 157 | if (ret != 0) |
| 158 | goto out; |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 159 | new = kzalloc(sizeof(*new), GFP_ATOMIC); |
Paul Moore | 9b80c36 | 2019-08-01 17:55:06 -0400 | [diff] [blame] | 160 | if (new) { |
| 161 | new->nsec.ns = ns; |
| 162 | new->nsec.ifindex = ifindex; |
| 163 | new->nsec.sid = *sid; |
| 164 | if (sel_netif_insert(new)) |
| 165 | kfree(new); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 166 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 167 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 168 | out: |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 169 | spin_unlock_bh(&sel_netif_lock); |
| 170 | dev_put(dev); |
Paul Moore | 9b80c36 | 2019-08-01 17:55:06 -0400 | [diff] [blame] | 171 | if (unlikely(ret)) |
peter enderborg | 0d3a115 | 2018-06-12 10:09:10 +0200 | [diff] [blame] | 172 | pr_warn("SELinux: failure in %s(), unable to determine network interface label (%d)\n", |
| 173 | __func__, ifindex); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 174 | return ret; |
| 175 | } |
| 176 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 177 | /** |
| 178 | * sel_netif_sid - Lookup the SID of a network interface |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 179 | * @ns: the network namespace |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 180 | * @ifindex: the network interface |
| 181 | * @sid: interface SID |
| 182 | * |
| 183 | * Description: |
| 184 | * This function determines the SID of a network interface using the fastest |
| 185 | * method possible. First the interface table is queried, but if an entry |
| 186 | * can't be found then the policy is queried and the result is added to the |
| 187 | * table to speedup future queries. Returns zero on success, negative values |
| 188 | * on failure. |
| 189 | * |
| 190 | */ |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 191 | int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 193 | struct sel_netif *netif; |
| 194 | |
| 195 | rcu_read_lock(); |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 196 | netif = sel_netif_find(ns, ifindex); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 197 | if (likely(netif != NULL)) { |
| 198 | *sid = netif->nsec.sid; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 199 | rcu_read_unlock(); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 200 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 201 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 202 | rcu_read_unlock(); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 203 | |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 204 | return sel_netif_sid_slow(ns, ifindex, sid); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | } |
| 206 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 207 | /** |
| 208 | * sel_netif_kill - Remove an entry from the network interface table |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 209 | * @ns: the network namespace |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 210 | * @ifindex: the network interface |
| 211 | * |
| 212 | * Description: |
| 213 | * This function removes the entry matching @ifindex from the network interface |
| 214 | * table if it exists. |
| 215 | * |
| 216 | */ |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 217 | static void sel_netif_kill(const struct net *ns, int ifindex) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | { |
| 219 | struct sel_netif *netif; |
| 220 | |
Paul E. McKenney | 6184425 | 2008-04-21 18:12:33 -0700 | [diff] [blame] | 221 | rcu_read_lock(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 222 | spin_lock_bh(&sel_netif_lock); |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 223 | netif = sel_netif_find(ns, ifindex); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 224 | if (netif) |
| 225 | sel_netif_destroy(netif); |
| 226 | spin_unlock_bh(&sel_netif_lock); |
Paul E. McKenney | 6184425 | 2008-04-21 18:12:33 -0700 | [diff] [blame] | 227 | rcu_read_unlock(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 228 | } |
| 229 | |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 230 | /** |
| 231 | * sel_netif_flush - Flush the entire network interface table |
| 232 | * |
| 233 | * Description: |
| 234 | * Remove all entries from the network interface table. |
| 235 | * |
| 236 | */ |
Paul Moore | 615e51f | 2014-06-26 14:33:56 -0400 | [diff] [blame] | 237 | void sel_netif_flush(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | { |
| 239 | int idx; |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 240 | struct sel_netif *netif; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 241 | |
| 242 | spin_lock_bh(&sel_netif_lock); |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 243 | for (idx = 0; idx < SEL_NETIF_HASH_SIZE; idx++) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 244 | list_for_each_entry(netif, &sel_netif_hash[idx], list) |
| 245 | sel_netif_destroy(netif); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 246 | spin_unlock_bh(&sel_netif_lock); |
| 247 | } |
| 248 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | static int sel_netif_netdev_notifier_handler(struct notifier_block *this, |
Eric Paris | 338366c | 2008-04-18 17:38:22 -0400 | [diff] [blame] | 250 | unsigned long event, void *ptr) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 251 | { |
Jiri Pirko | 351638e | 2013-05-28 01:30:21 +0000 | [diff] [blame] | 252 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 254 | if (event == NETDEV_DOWN) |
Paul Moore | cbe0d6e | 2014-09-10 17:09:57 -0400 | [diff] [blame] | 255 | sel_netif_kill(dev_net(dev), dev->ifindex); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 256 | |
| 257 | return NOTIFY_DONE; |
| 258 | } |
| 259 | |
| 260 | static struct notifier_block sel_netif_netdev_notifier = { |
| 261 | .notifier_call = sel_netif_netdev_notifier_handler, |
| 262 | }; |
| 263 | |
| 264 | static __init int sel_netif_init(void) |
| 265 | { |
Paul Moore | 942ba36 | 2014-08-07 20:55:30 -0400 | [diff] [blame] | 266 | int i; |
Eric Paris | 338366c | 2008-04-18 17:38:22 -0400 | [diff] [blame] | 267 | |
Stephen Smalley | 6c5a682 | 2019-12-17 09:15:10 -0500 | [diff] [blame] | 268 | if (!selinux_enabled_boot) |
Paul Moore | e8bfdb9 | 2008-01-29 08:38:08 -0500 | [diff] [blame] | 269 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 270 | |
| 271 | for (i = 0; i < SEL_NETIF_HASH_SIZE; i++) |
| 272 | INIT_LIST_HEAD(&sel_netif_hash[i]); |
| 273 | |
| 274 | register_netdevice_notifier(&sel_netif_netdev_notifier); |
Eric Paris | 338366c | 2008-04-18 17:38:22 -0400 | [diff] [blame] | 275 | |
Paul Moore | 942ba36 | 2014-08-07 20:55:30 -0400 | [diff] [blame] | 276 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 277 | } |
| 278 | |
| 279 | __initcall(sel_netif_init); |
| 280 | |