]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
convert selinuxfs
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Feb 2024 07:06:37 +0000 (02:06 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:05 +0000 (01:35 -0500)
commitcd08d17f39b7b7c54bfa35437fa4cd4e144d8179
tree3ff305dcee1528576b7b6537dbbf4526db2a6ecd
parentd1e4a99358ea86854882ee325d4ceedd97f46e97
convert selinuxfs

Tree has invariant part + two subtrees that get replaced upon each
policy load.  Invariant parts stay for the lifetime of filesystem,
these two subdirs - from policy load to policy load (serialized
on lock_rename(root, ...)).

All object creations are via d_alloc_name()+d_add() inside selinuxfs,
all removals are via simple_recursive_removal().

Turn those d_add() into d_make_persistent()+dput() and that's mostly it.

Acked-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Tested-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/selinux/selinuxfs.c