diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-07-30 07:16:21 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-09-13 03:58:02 +0200 |
commit | 37d3dd663f7485bf3e444f40abee3c68f53158cb (patch) | |
tree | 20f2a3e0988f08368369dec870781bbfc7163047 /security | |
parent | security,bpf: constify struct path in bpf_token_create() LSM hook (diff) | |
download | linux-37d3dd663f7485bf3e444f40abee3c68f53158cb.tar.xz linux-37d3dd663f7485bf3e444f40abee3c68f53158cb.zip |
bpf: convert bpf_token_create() to CLASS(fd, ...)
Keep file reference through the entire thing, don't bother with grabbing
struct path reference and while we are at it, don't confuse the hell out
of readers by random mix of path.dentry->d_sb and path.mnt->mnt_sb uses -
these two are equal, so just put one of those into a local variable and
use that.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions