]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid/minix: Sanity check superblock s_state for v 1 and 2
authorNate Clark <nate@neworld.us>
Wed, 4 Jan 2017 20:21:17 +0000 (15:21 -0500)
committerNate Clark <nate@neworld.us>
Wed, 4 Jan 2017 20:24:40 +0000 (15:24 -0500)
commit892553b1a41b449f58462f123eca2bf2c6c56b33
treeff8b7ccdae4f8435a10eb7da50eab233a724583f
parentf82c804869bb8613fa0924e3111b7eb55bb04fcd
libblkid/minix: Sanity check superblock s_state for v 1 and 2

Swap devices with specific values in the uuid can look like minix
devices to blkid. Add an extra check to make sure the state of the
filesystem has valid state flags.

A couple of offending swap uuids include:
35f1f264-137f-471a-bc85-acc9f4bc04a3
35f1f264-7f13-471a-bc85-acc9f4bc04a3
35f1f264-138f-471a-bc85-acc9f4bc04a3
35f1f264-8f13-471a-bc85-acc9f4bc04a3

Without this change a swap device with any of those uuids would be
detected as minix and swap by blkid.

Signed-off-by: Nate Clark <nate@neworld.us>
libblkid/src/superblocks/minix.c