summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-02-09 22:57:43 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2025-09-16 04:08:33 +0300
commit180a9cc3fd6a020746fbd7f97b9b62295a325fd2 (patch)
tree8532935589ae9bdb08fca6ac73b27a505463bcbd /security/selinux/hooks.c
parentca97d6c60b1d1dff519a7e3dd86708304e657365 (diff)
downloadlinux-180a9cc3fd6a020746fbd7f97b9b62295a325fd2.tar.xz
make it easier to catch those who try to modify ->d_name
Turn d_name into an anon union of const struct qstr d_name with struct qstr __d_name. Very few places need to modify it (all in fs/dcache.c); those are switched to use of ->__d_name. Note that ->d_name can actually change under you unless you have the right locking environment; this const just prohibits accidentally doing stores without being easily spotted. Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions