Univention Bugzilla – Bug 42491
univention-home-mounter: Fills /tmp with tempfiles - data loss due server DoS
Last modified: 2016-10-12 13:06:46 CEST
Script uses "set -e" and only does "rm $tmp" at end, thus filling up /tmp/. Runs every 10 minutes! "grep -v" is completely broken dotlockfile is completely inefficient and may file, leading to early script abort. Broken quoting. may break depending on locale.
And the timeout logic is completely broken: If a mount-point is mounted multiple times (and not unmounted in between), the script will process the oldest mount first and tries to unmount the share, even when it's still in active use. May lead to data loss!
r72845 | Bug #42491,Bug #32018 home: Fix umount r72842 | Bug #42491 home: Copyright 2016 Package: univention-home-mounter Version: 7.0.1-2.74.201609271550 Branch: ucs_4.1-0 Scope: errata4.1-3 r72846 | Bug #42491,Bug #32018 home: YAML univention-home-mounter.yaml r72849 | Bug #42491,Bug #32018 home: Fix umount (In reply to Philipp Hahn from comment #1) > And the timeout logic is completely broken: If a mount-point is mounted > multiple times (and not unmounted in between), the script will process the > oldest mount first and tries to unmount the share, even when it's still in > active use. This was not fixed as this would require a complete rewrite.
YAML: OK (small improvement r73051) Code review: OK Merge to UCS 4.2: OK Tests: OK
<http://errata.software-univention.de/ucs/4.1/283.html>