Okay. I found an answer. For those, who need help with this question: read this article.
Main part of this question is to find struct mount
, whose field is struct vfsmount
from struct path
. To do this, you can use container_of
(read this). So, with mount and dentry you can successfully restore path. (Kernel also can restore path to file in other mount namespace, I don't do this)