Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16030

Identify container from file struct in Linux kernel

$
0
0

I'm writing a LSM and hooking the file_open function. At the moment I can print out the name of the file being accessed. However, when I access a file /dir/file in a docker container (the file does not exist outside the container), the printed path is /dir/file. Is this okay? Is the file in this path of the file system? or is it stored in a different path? How can I tell which files are created inside a container and which are not?

I thought the vfsmountpoint might be different for these files, but it does not seem to be.

Thank you


Viewing all articles
Browse latest Browse all 16030

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>