Article 4RBB6 filename_lookup is not available in RHEL 8 with 4.18, whats the alternate?

filename_lookup is not available in RHEL 8 with 4.18, whats the alternate?

by
ktalinki
from LinuxQuestions.org on (#4RBB6)
Our kernel module has been using filename_lookup API, which is not found in RHEL8 with kernel 4.18 (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 struct nameidata.

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?latest?d=yIl2AUoC8zA latest?i=c1y-21PY7l8:iXUGFE4T3PA:F7zBnMy latest?i=c1y-21PY7l8:iXUGFE4T3PA:V_sGLiP latest?d=qj6IDK7rITs latest?i=c1y-21PY7l8:iXUGFE4T3PA:gIN9vFwc1y-21PY7l8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments