]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: don't bother with getname/kern_path - use user_path_at
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jan 2020 23:28:58 +0000 (23:28 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 21 Jan 2020 22:46:21 +0000 (23:46 +0100)
commite63cb2b1a28e438752b0936f7ba03644edd7c8ee
tree415cc073ffe6ea21ca3d25fc3c541115af8e6888
parent8fbabd98b315c85261b3fb620f23fb1e97c68d47
bpf: don't bother with getname/kern_path - use user_path_at

kernel/bpf/inode.c misuses kern_path...() - it's much simpler (and
more efficient, on top of that) to use user_path...() counterparts
rather than bothering with doing getname() manually.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200120232858.GF8904@ZenIV.linux.org.uk
kernel/bpf/inode.c