unmounting broken, mounting for normal users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libpam-mount (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: libpam-mount
mounting and unmounting doesn't work for normal users,
because the script does not run under root anymore. So
instead of symlinking the scripts to /sbin/*mount.crypt,
I put a little wrapper binary there that execle()s the
appropriate scripts. I also added a check that each script
is only called by /bin/umount resp. /bin/mount.
Additionally, umount doesn't work because the entry in
the mtab is wrong. It isn't set to fs type crypt because
the mount behind the scenes mounts the fs type that's
actually on the disc. To get this right, the mount must be
first done without mtab entry, then a fake mount entry
created. On unmount, care must be taken not te create
a recursive loop.
See the patch I'll add as soon as this thing allows me to.
Attached promised patch.