Thanks a lot for the pointer. I am not sure this solution will work,
because it is inadequate for watching a specific location in a container
context separated by the mount and the network namespaces. We have
multiple mount points at the same place (eg. the mount point
inheritance, the container configuration and the init scripts may mount
/dev or /var/run several time) and the network namespace separation will
make impossible to watch udev event via a netlink socket. I didn't look
at the inotify implementation but IMHO, it should be worth to add
IN_MOUNT and IN_UNMOUNT events for inotify no ?
Thanks
-- Daniel
--