]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't support /etc/mtab by default
authorKarel Zak <kzak@redhat.com>
Thu, 14 Apr 2016 12:26:54 +0000 (14:26 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Apr 2016 12:26:54 +0000 (14:26 +0200)
commite778642a9eb96975fcf3baa61dfa10add628af1a
treebcd1f5f3030d19b56755abcbf71a3420e36bedcc
parent3e584e8576aef83f934e8409d07758550dd019cb
libmount: don't support /etc/mtab by default

The file mtab is evil and already unused by mainstream distributions.

Now libmount is able to detect mtab->/proc/mounts and use
/proc/self/mountinfo if necessary. This heuristic seems overkill in
many cases. It's also dangerous on systems where mountinfo is strongly
required (systemd based distros).

This patch #ifdefs mtab code and forces libmount to always use
/proc/self/mountinfo.

The new configure option --enable-libmount-support-mtab is necessary
to enable old behavior to support mtab.

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
libmount/src/context.c
libmount/src/tab_parse.c
libmount/src/tab_update.c