diff options
author | Karel Zak | 2009-11-19 15:56:12 +0100 |
---|---|---|
committer | Karel Zak | 2009-11-19 15:56:12 +0100 |
commit | b7ce600d3d238ca3e82aa04ee6845afc45fb5eb8 (patch) | |
tree | 51dfc1626d479471b02f8b018d1e8f2619bd140c /configure.ac | |
parent | ionice: add a note about none class and CFQ (diff) | |
download | kernel-qcow2-util-linux-b7ce600d3d238ca3e82aa04ee6845afc45fb5eb8.tar.gz kernel-qcow2-util-linux-b7ce600d3d238ca3e82aa04ee6845afc45fb5eb8.tar.xz kernel-qcow2-util-linux-b7ce600d3d238ca3e82aa04ee6845afc45fb5eb8.zip |
mount: check for unsuccessful read-only bind mounts
Linux kernel allows to use MS_RDONLY together with MS_BIND,
unfortunately the MS_RDONLY is silently ignored and the target
mountpoint is still read-write. Then we have 'ro' in mtab and 'rw' in
/proc/mounts.
This patch checks for this situation by access(2) or futimens(2)
(change atime) and mtab is properly updated and user informed.
Reported-by: Terry Burton <tez@terryburton.co.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fc0b9e1b8..d0356fdb3 100644 --- a/configure.ac +++ b/configure.ac @@ -145,6 +145,7 @@ AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]]) AC_CHECK_FUNCS( [inet_aton \ + futimens \ fsync \ getdomainname \ get_current_dir_name \ |