On Fri, Dec 01, 2017 at 03:48:59AM +0000, Al Viro wrote: > Something similar to get_prog_path_type() above might make for a usable > primitive, IMO...
Incidentally, bpf_obj_get_user()/bpf_obj_do_get() should just use user_path(), rather than wanking with getname()+kern_path(pname->name)+putname(). Note that kern_path() will do getname_kernel() to get struct pathname... Would cause problems for tracepoints in there, though. And that, BTW, is precisely why I don't want tracepoints in core VFS, TYVM - makes restructuring the code harder...