Also, reading /etc//mtab is really deprecated -- this file should have gone away eons ago. As a first and easy step, could ecryptfs at least parse /proc/self/mountstat? But just hardcoding /sys will do fine, as Steve says.
Also, reading /etc//mtab is really deprecated -- this file should have gone away eons ago. As a first and easy step, could ecryptfs at least parse /proc/self/ mountstat? But just hardcoding /sys will do fine, as Steve says.