diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-02-26 14:50:11 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-19 16:15:16 +0100 |
| commit | 0abd81645fc95ec6a9d4e4813000f22c5efc0ff4 (patch) | |
| tree | 32e146c48ebb31e8929284cd083bc2e40e50ee1f /include | |
| parent | 1797ee11451f1b2be69863a9f5bd43b948813fdf (diff) | |
nstree: tighten permission checks for listing
commit 8d76afe84fa2babf604b3c173730d4d2b067e361 upstream.
Even privileged services should not necessarily be able to see other
privileged service's namespaces so they can't leak information to each
other. Use may_see_all_namespaces() helper that centralizes this policy
until the nstree adapts.
Link: https://patch.msgid.link/20260226-work-visibility-fixes-v1-3-d2c2853313bd@kernel.org
Fixes: 76b6f5dfb3fd ("nstree: add listns()")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Cc: stable@kernel.org # v6.19+
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
