filename_lookup is not available in RHEL 8 with 4.18, whats the alternate?
by ktalinki from LinuxQuestions.org on (#4RBB7)
Our kernel module has been using filename_lookup API, which is not found in RHEL8 (kernel 4.18.x) (symbol not found in /proc/kallsyms).
What is the alternative API/call I can use in place of filename_lookup().
I noticed kern_path() symbol available in /proc/kallsyms, it returns struct path *, but not structnameidata.
Our code is heavily dependent on the struct nameidata and I am not able to find any good way to build struct nameidata from struct path.
What is the best approach for this situation?


What is the alternative API/call I can use in place of filename_lookup().
I noticed kern_path() symbol available in /proc/kallsyms, it returns struct path *, but not structnameidata.
Our code is heavily dependent on the struct nameidata and I am not able to find any good way to build struct nameidata from struct path.
What is the best approach for this situation?