Repository navigation
Commit 1597fbc
[UNIX]: Make the unix sysctl tables per-namespace
This is the core.
* add the ctl_table_header on the struct net;
* make the unix_sysctl_register and _unregister clone the table;
* moves calls to them into per-net init and exit callbacks;
* move the .data pointer in the proper place.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1d430b9 commit 1597fbc
3 files changed
Lines changed: 31 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
| 2142 | + | |
| 2143 | + | |
2142 | 2144 | | |
2143 | 2145 | | |
2144 | | - | |
| 2146 | + | |
| 2147 | + | |
2145 | 2148 | | |
| 2149 | + | |
2146 | 2150 | | |
2147 | 2151 | | |
2148 | 2152 | | |
| |||
2151 | 2155 | | |
2152 | 2156 | | |
2153 | 2157 | | |
| 2158 | + | |
2154 | 2159 | | |
2155 | 2160 | | |
2156 | 2161 | | |
| |||
2175 | 2180 | | |
2176 | 2181 | | |
2177 | 2182 | | |
2178 | | - | |
2179 | 2183 | | |
2180 | 2184 | | |
2181 | 2185 | | |
2182 | 2186 | | |
2183 | 2187 | | |
2184 | 2188 | | |
2185 | 2189 | | |
2186 | | - | |
2187 | 2190 | | |
2188 | 2191 | | |
2189 | 2192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
40 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
41 | 54 | | |
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
45 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
0 commit comments