diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-23 09:20:23 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-23 09:20:23 +0200 |
| commit | 0f30047dc83fe18fe0b0766134e9c1a67a09a431 (patch) | |
| tree | 30b8c182066c7f285cdf0821f18682593fa549da /tools/lib/python | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| parent | 04fcaedd250ed2213eb65eec40d379c2f275aa02 (diff) | |
| download | linux-next-0f30047dc83fe18fe0b0766134e9c1a67a09a431.tar.gz linux-next-0f30047dc83fe18fe0b0766134e9c1a67a09a431.zip | |
Merge patch series "fs: port to const struct mnt_idmap"
Christian Brauner <brauner@kernel.org> says:
A mount's idmapping is immutable. The only thing that is allowed to be
modified afterwards is the reference count and that is hidden behind
mnt_idmap_get() and mnt_idmap_put(). Everything else only ever reads
from the idmapping. This is the same model that struct cred uses and the
idmapping is also rather sensitive.
So make the idmap argument const wherever we can. The conversion is done
from the bottom up so callers can continue to pass a non-const pointer
to a const parameter until the conversion is finished.
* patches from https://patch.msgid.link/20260901-work-idmap-const-v1-0-54ccd48e100b@kernel.org: (27 commits)
fs: make nop_mnt_idmap and invalid_mnt_idmap const
fs: port mnt_idmap() and file_mnt_idmap() to const mnt_idmap
fs: port vfs_*() helpers to const mnt_idmap
fs: port ->setattr() to pass const mnt_idmap
fs: port ->getattr() to pass const mnt_idmap
fs: port ->create() to pass const mnt_idmap
fs: port ->symlink() to pass const mnt_idmap
fs: port ->mkdir() to pass const mnt_idmap
fs: port ->rename() to pass const mnt_idmap
fs: port ->mknod() to pass const mnt_idmap
fs: port ->tmpfile() to pass const mnt_idmap
fs: port ->get_acl() to pass const mnt_idmap
fs: port ->set_acl() to pass const mnt_idmap
fs: port ->fileattr_set() to pass const mnt_idmap
fs: port xattr to const mnt_idmap
fs: port ->permission() to pass const mnt_idmap
fs: port acl to const mnt_idmap
fs: port inode_init_owner() to const mnt_idmap
fs: port inode_owner_or_capable() to const mnt_idmap
fs: port privilege checking helpers to const mnt_idmap
...
Link: https://patch.msgid.link/20260901-work-idmap-const-v1-0-54ccd48e100b@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
