]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selinuxfs: new helper for attaching files to tree
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 Oct 2025 20:54:10 +0000 (16:54 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:05 +0000 (01:35 -0500)
commitd1e4a99358ea86854882ee325d4ceedd97f46e97
tree000f62681cdf762ed506a300f0e5555c6ffd2185
parentd297622875f9bedd8c1105e1797040e0b8d19402
selinuxfs: new helper for attaching files to tree

allocating dentry after the inode has been set up reduces the amount
of boilerplate - "attach this inode under that name and this parent
or drop inode in case of failure" simplifies quite a few places.

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