diff options
author | Christian Brauner <[email protected]> | 2021-01-21 14:19:35 +0100 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2021-01-24 14:27:18 +0100 |
commit | b8b546a061884d98ba6ac6b4a0d1ee6566031cf5 (patch) | |
tree | a80128ab5b1ca411ff2ecfe60212a884663c16fd /tools/perf/scripts/python/stackcollapse.py | |
parent | 643fe55a0679ae5582a1a2a1df86dc240292cd1b (diff) |
open: handle idmapped mounts
For core file operations such as changing directories or chrooting,
determining file access, changing mode or ownership the vfs will verify
that the caller is privileged over the inode. Extend the various helpers
to handle idmapped mounts. If the inode is accessed through an idmapped
mount map it into the mount's user namespace. Afterwards the permissions
checks are identical to non-idmapped mounts. When changing file
ownership we need to map the uid and gid from the mount's user
namespace. If the initial user namespace is passed nothing changes so
non-idmapped mounts will see identical behavior as before.
Link: https://lore.kernel.org/r/[email protected]
Cc: Christoph Hellwig <[email protected]>
Cc: David Howells <[email protected]>
Cc: Al Viro <[email protected]>
Cc: [email protected]
Reviewed-by: James Morris <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions