linux/fs/ecryptfs
Christian Brauner e2f0d6d456
fs: port ->setattr() to pass const mnt_idmap
Convert to const struct mnt_idmap.

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.

No functional changes.

Link: https://patch.msgid.link/20260901-work-idmap-const-v1-24-54ccd48e100b@kernel.org
Acked-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Seth Forshee <sforshee@kernel.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
2026-09-23 09:19:51 +02:00
..
crypto.c ecryptfs: pass packet set buffer size to parser 2026-07-20 22:11:14 -05:00
debug.c ecryptfs: Replace memcpy + manual NUL termination with strscpy 2026-03-25 22:39:27 -05:00
dentry.c ecryptfs: get rid of pointless mount references in ecryptfs dentries 2025-09-15 21:26:44 -04:00
ecryptfs_kernel.h ecryptfs: ecryptfs_kernel.h: clean up kernel-doc comments 2026-07-22 19:59:33 -05:00
file.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
inode.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
Kconfig ecryptfs: Use MD5 library instead of crypto_shash 2025-10-31 10:12:35 +01:00
keystore.c ecryptfs: reject too-small tag 70 packets 2026-07-20 22:11:14 -05:00
kthread.c ecryptfs: kthread: Demote file header and provide description for 'cred' 2021-04-19 04:42:13 +00:00
main.c ecryptfs: Set s_time_gran to get correct time granularity 2026-03-25 22:35:49 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
messaging.c ecryptfs: hold msg ctx list lock when cleaning daemon queue 2026-07-17 09:57:24 -05:00
miscdev.c eCryptfs: bound the packet-length peek to the user buffer 2026-07-20 22:12:33 -05:00
mmap.c ecryptfs: use filemap_dirty_folio for address space operations 2026-07-20 22:12:46 -05:00
read_write.c ecryptfs: Convert ecryptfs_encrypt_page() to take a folio 2024-11-05 17:19:59 +01:00
super.c ecryptfs: show filename encryption options 2026-07-20 22:12:46 -05:00