Christian Brauner
9b3e150464
pidfs: handle kernels without namespaces cleanly
...
The nsproxy structure contains nearly all of the namespaces associated
with a task. When a given namespace type is not supported by this kernel
the rules whether the corresponding pointer in struct nsproxy is NULL or
always init_<ns_type>_ns differ per namespace. Ideally, that wouldn't be
the case and for all namespace types we'd always set it to
init_<ns_type>_ns when the corresponding namespace type isn't supported.
Make sure we handle all namespaces where the pointer in struct nsproxy
can be NULL when the namespace type isn't supported.
Link: https://lore.kernel.org/r/20240722-work-pidfs-e6a83030f63e@brauner
Fixes: 5b08bd4085 ("pidfs: allow retrieval of namespace file descriptors") # mainline only
Signed-off-by: Christian Brauner <brauner@kernel.org >
2024-07-24 10:53:13 +02:00
..
2024-05-29 09:25:15 -07:00
2024-07-18 09:50:08 +02:00
2024-07-11 16:14:26 +02:00
2024-07-21 17:15:46 -07:00
2024-07-15 11:31:32 -07:00
2024-07-21 17:56:22 -07:00
2024-05-31 12:31:39 +02:00
2024-07-21 17:15:46 -07:00
2024-07-05 18:40:40 +02:00
2024-07-03 19:29:55 -07:00
2024-05-31 12:31:39 +02:00
2024-06-17 20:42:57 +02:00
2024-07-15 11:14:59 -07:00
2024-05-19 09:21:03 -07:00
2024-07-15 11:31:32 -07:00
2024-06-13 12:48:46 -05:00
2024-05-13 14:14:05 -07:00
2024-07-02 06:21:18 +02:00
2024-07-15 11:14:59 -07:00
2024-07-13 12:47:34 +08:00
2024-07-17 12:53:47 -07:00
2024-05-28 15:57:23 +02:00
2024-06-26 12:54:11 +02:00
2024-07-18 17:03:42 -07:00
2024-07-15 11:18:49 -07:00
2024-07-15 11:31:32 -07:00
2024-07-19 11:57:55 -07:00
2024-07-09 10:40:03 +02:00
2024-07-15 11:14:59 -07:00
2024-07-15 10:52:51 -07:00
2024-07-15 11:31:32 -07:00
2024-07-15 11:14:59 -07:00
2024-07-21 17:15:46 -07:00
2024-07-15 13:28:14 -07:00
2024-07-17 13:11:42 -07:00
2024-07-08 23:59:37 -04:00
2024-05-31 12:31:41 +02:00
2024-06-04 18:09:03 +02:00
2024-05-04 19:02:39 +02:00
2024-07-08 14:10:03 -04:00
2024-07-15 11:14:59 -07:00
2024-07-24 10:15:38 +02:00
2024-07-21 17:15:46 -07:00
2024-07-08 13:47:24 -04:00
2024-07-17 12:00:49 -07:00
2024-07-21 17:56:22 -07:00
2024-06-03 16:37:07 +02:00
2024-06-05 09:52:38 +02:00
2024-07-02 06:21:19 +02:00
2024-07-21 17:56:22 -07:00
2024-06-20 09:46:01 +02:00
2024-05-31 12:31:41 +02:00
2024-06-14 10:30:40 +02:00
2024-07-21 17:15:46 -07:00
2024-07-18 14:48:11 -07:00
2024-05-28 11:52:53 +02:00
2024-05-28 11:52:49 +02:00
2024-06-03 15:45:47 +02:00
2024-04-25 20:56:25 -07:00
2024-05-31 12:31:41 +02:00
2024-05-31 12:31:42 +02:00
2024-07-21 20:50:39 -07:00
2024-05-19 14:02:03 -07:00
2024-05-28 11:52:45 +02:00
2024-07-02 06:21:20 +02:00
2024-06-26 12:54:11 +02:00
2024-07-21 17:56:22 -07:00
2024-05-10 04:34:52 +09:00
2024-07-15 11:31:32 -07:00
2024-06-12 11:01:31 -07:00
2024-07-17 12:57:48 -07:00
2024-06-11 11:22:57 +09:00
2024-07-21 17:15:46 -07:00
2024-04-26 10:33:05 +02:00
2024-06-25 11:15:48 +02:00
2024-05-02 20:35:57 +02:00
2024-06-03 15:52:10 +02:00
2024-07-16 12:59:20 -07:00
2024-07-15 11:14:59 -07:00
2024-05-28 12:06:51 +02:00
2024-07-18 17:03:42 -07:00
2024-07-04 23:43:09 -07:00
2024-04-25 20:56:20 -07:00
2024-07-15 10:52:51 -07:00
2024-05-05 14:00:48 -07:00
2024-07-13 21:31:58 -07:00
2024-07-16 12:59:20 -07:00
2024-05-10 08:26:31 +02:00
2024-05-28 15:57:23 +02:00
2024-05-30 09:11:47 +02:00
2024-07-02 06:20:49 +02:00
2024-06-05 17:03:57 +02:00
2024-07-24 10:52:58 +02:00
2024-07-15 12:34:01 -07:00
2024-05-13 06:58:35 +02:00
2024-06-19 13:13:55 -07:00
2024-06-07 17:00:44 +02:00
2024-07-11 09:03:28 -07:00
2024-07-15 11:54:04 -07:00
2024-05-31 12:31:43 +02:00
2024-07-24 10:53:12 +02:00
2024-07-15 11:54:04 -07:00
2024-07-18 09:50:08 +02:00
2024-07-15 10:52:51 -07:00
2024-07-24 10:53:13 +02:00
2024-06-28 14:36:43 +02:00
2024-06-20 15:19:17 -06:00
2024-06-03 15:49:26 +02:00
2024-05-02 16:28:20 +02:00
2024-05-24 13:34:07 +02:00
2024-07-15 14:20:22 -07:00
2024-06-18 16:20:47 +02:00
2024-07-12 15:52:15 -07:00