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