also sprach Jochen Sprickerhof <jspri...@debian.org> [2017-10-04 11:41 +0200]: > > I thought part of the deal with libpam-mount was that it kept > > a session counter and only mounted if (!mounted) and only > > unmounted if (mounted && n == 0) > > I assume it does not, but I didn't check the sources.
modify_pm_count is the function that modifies the per-user counter: https://sources.debian.net/src/libpam-mount/2.16-3/src/pmvarrun.c/#L209 man pmvarrun(8)… pmt_already_mounted checks mtab for whether a volume is already mounted: https://sources.debian.net/src/libpam-mount/2.16-3/src/mount.c/#L140 So I'd say that this functionality is included, and if it's not working as expected, then there's a bug. -- .''`. martin f. krafft <madduck@d.o> @martinkrafft : :' : proud Debian developer `. `'` http://people.debian.org/~madduck `- Debian - when you have better things to do than fixing systems "courage is not the absence of fear, but the decision that something else is more important than fear." -- ambrose redmoon
digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)