This discussion has some similarities to problems with fusermount binary, see https://bugzilla.redhat.com/show_bug.cgi?id=651183 for good arguments while fixing races there. Perhaps something could be reused, or create a libsecuremount with workaround while linux (u)mount-syscalls are problematic, which is used from fusermount/smb mount/ ...
This discussion has some similarities to problems with fusermount binary, see https:/ /bugzilla. redhat. com/show_ bug.cgi? id=651183 for good arguments while fixing races there. Perhaps something could be reused, or create a libsecuremount with workaround while linux (u)mount-syscalls are problematic, which is used from fusermount/smb mount/ ...