Commit b2a0b19
committed
mnt: expose pointer to init_mnt_ns
There's various scenarios where we need to know whether we are in the
initial set of namespaces or not to e.g., shortcut permission checking.
All namespaces expose that information. Let's do that too.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 93f67a7 commit b2a0b19
2 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6008 | 6008 | | |
6009 | 6009 | | |
6010 | 6010 | | |
| 6011 | + | |
| 6012 | + | |
| 6013 | + | |
| 6014 | + | |
| 6015 | + | |
| 6016 | + | |
| 6017 | + | |
| 6018 | + | |
| 6019 | + | |
| 6020 | + | |
6011 | 6021 | | |
6012 | 6022 | | |
6013 | 6023 | | |
6014 | 6024 | | |
6015 | | - | |
6016 | 6025 | | |
6017 | 6026 | | |
6018 | 6027 | | |
6019 | 6028 | | |
6020 | 6029 | | |
6021 | 6030 | | |
6022 | | - | |
6023 | | - | |
6024 | | - | |
6025 | | - | |
6026 | 6031 | | |
6027 | | - | |
6028 | | - | |
6029 | | - | |
6030 | | - | |
6031 | | - | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
| 6036 | + | |
6032 | 6037 | | |
6033 | 6038 | | |
6034 | 6039 | | |
6035 | 6040 | | |
6036 | 6041 | | |
6037 | 6042 | | |
6038 | 6043 | | |
6039 | | - | |
| 6044 | + | |
6040 | 6045 | | |
6041 | 6046 | | |
6042 | 6047 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments