diff options
author | Christian Brauner <brauner@kernel.org> | 2025-09-12 13:52:50 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-09-19 14:26:16 +0200 |
commit | d2afdb73f8ad77b49eca9d110d0c54bf30d1df0f (patch) | |
tree | 7de58ed5f11053677f992c8734dadd1cc935d1a9 /net/unix/af_unix.c | |
parent | d7afdf889561058068ab46fd8f306c70ef29216a (diff) |
nsfs: add current_in_namespace()
Add a helper to easily check whether a given namespace is the caller's
current namespace. This is currently open-coded in a lot of places.
Simply switch on the type and compare the results.
Reviewed-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions