From b7ce600d3d238ca3e82aa04ee6845afc45fb5eb8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 19 Nov 2009 15:56:12 +0100 Subject: 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 Signed-off-by: Karel Zak --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') 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 ]]) AC_CHECK_FUNCS( [inet_aton \ + futimens \ fsync \ getdomainname \ get_current_dir_name \ -- cgit v1.2.3-55-g7522