Go to file
Theodore Ts'o ea4d53b7b9 libext2fs/ismounted.c: check device id in advance to skip false device names
If there is a trickster which tries to use device names as the mount
device for pseudo-file systems, the resulting /proc/mounts can confuse
ext2fs_check_mount_point().  (So far as I can tell, there's no good
reason to do this, but sysadmins do the darnest things.)

An example of this might be the following /proc/mounts excerpt:

/dev/sdb /mnt2 tmpfs rw,relatime 0 0
/dev/sdb /mnt ext4 rw,relatime 0 0

This is created via "mount -t tmpfs /dev/sdb /mnt2" followed via
"mount -t ext4 /dev/sdb /mnt".  (Normally, a sane mount of tmpfs would
use something like "mount -t tmpfs tmpfs /mnt2".)

Fix this by double checking the st_rdev of the claimed mountpoint and
match it with the dev_t of the device.  (Note that the GNU HURD
doesn't support st_rdev, so we can't solve this problem for the HURD.)

Reported-by: GuiYao <guiyao@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-11-10 12:11:49 -05:00
config Don't use a symlink for config/ltmain.sh 2019-03-06 22:17:57 -05:00
contrib AOSP: e2fsdroid: Fix incorrect error value handling. 2019-02-07 22:37:54 -05:00
debian Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
debugfs debugfs: clean up gcc -Wall warning from using snprintf 2019-07-14 10:41:36 -04:00
doc Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
e2fsck e2fsck: check the validity of the casefold flag 2019-09-03 10:37:51 -04:00
ext2ed Merge branch 'maint' into next 2017-10-15 23:20:53 -04:00
include e2fsprogs: fix Free Software Foundation address 2018-04-19 11:39:09 -04:00
install-utils Remove Changelog files since they're not used after the git migration 2007-07-08 08:50:41 -04:00
intl build: use MKDIR_P instead of MKINSTALLDIRS 2018-08-11 15:29:48 -04:00
lib libext2fs/ismounted.c: check device id in advance to skip false device names 2019-11-10 12:11:49 -05:00
misc Fix UBSan when shifting (1LL << 63) 2019-11-04 21:22:54 -05:00
po Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
resize resize2fs: make minimum size estimates more reliable for mounted fs 2019-11-10 08:13:53 -05:00
scrub e2scrub_all: fix broken stdin redirection 2019-11-09 20:29:12 -05:00
tests e2fsck: check the validity of the casefold flag 2019-09-03 10:37:51 -04:00
util AOSP: Link to production releases, not testing releases 2019-10-31 18:53:29 -04:00
.gitignore misc: add e2mmpstatus utility via dumpe2fs 2018-06-22 18:22:37 -04:00
.missing-copyright Many files: 1997-04-29 16:15:03 +00:00
.release-checklist Stop generating e2fsprogs.spec automatically 2018-08-18 11:06:23 -04:00
ABOUT-NLS Update to gettext 0.11.5. We now enable NLS support by default. 2003-05-03 16:35:17 -04:00
acinclude.m4 fuse2fs: add fakeroot option. 2018-10-16 15:37:45 -04:00
aclocal.m4 e2fsprogs: fix Free Software Foundation address 2018-04-19 11:39:09 -04:00
Android.bp AOSP: Turn off some more warnings on Windows. 2019-04-22 13:35:03 -04:00
CleanSpec.mk AOSP: e2fsdroid and mke2fs are dynamic executable in recovery partition 2018-06-27 23:51:40 -04:00
configure configure: fix test where cron is not installed on a non-systemd system 2019-05-27 15:10:31 -04:00
configure.ac configure: fix test where cron is not installed on a non-systemd system 2019-05-27 15:10:31 -04:00
depfix.sed Update Release Notes, Changelogs, version.h, etc. for 1.42 release 2011-11-29 16:48:14 -05:00
e2fsprogs.lsm Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
e2fsprogs.spec Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
INSTALL Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
INSTALL.elfbin Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
Makefile.in Merge branch 'maint' into next 2018-10-04 10:39:50 -04:00
MCONFIG.in e2fsprogs: introduce script used to generate utf8data.h 2018-12-08 12:58:20 -05:00
NOTICE e2fsprogs: fix Free Software Foundation address 2018-04-19 11:39:09 -04:00
README Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
RELEASE-NOTES Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
SHLIBS Many files: 1997-04-29 16:15:03 +00:00
SUBMITTING-PATCHES Added SUBMITTING-PATCHES file 2005-07-05 22:30:13 -05:00
version.h Update release notes, etc., for the 1.45.4 release 2019-09-23 16:04:59 -04:00
wordwrap.pl Fix wordwrap.pl so it is more portable 2012-09-21 12:50:04 -04:00

	This is the new version (1.45.4) of the second extended file
system management programs.

	From time to time, I release new versions of e2fsprogs, to fix
bugs and to make the utilities more robust.  You can always find
information about the latest version at the the e2fsprogs web page,
which is:

	http://e2fsprogs.sourceforge.net

	The INSTALL file has instructions on building and installing
e2fsprogs.  Provisions for building Red Hat RPMs and Debian dpkg files
are supplied as well.

	In case of bugs in these programs, please contact Ted Ts'o at
tytso@mit.edu or tytso@alum.mit.edu.  See the e2fsck man page for
suggestions of what sort of information to include when submitting bug
reports for these programs.