From c08396c7691e1e6a04b6b45892e7e4612ceed8d7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Oct 2017 12:44:48 +0200 Subject: libmount: use eacess() rather than open() to check mtab/utab The open() syscall is probably the most strong way how to check write accessibility in all situations, but it's overkill and on some paranoid systems with enabled audit/selinux. It fills logs with "Permission denied" entries. Let's use eaccess() if available. 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 1899ec3c0..eebe92259 100644 --- a/configure.ac +++ b/configure.ac @@ -391,6 +391,7 @@ AC_CHECK_FUNCS([ \ __fpending \ secure_getenv \ __secure_getenv \ + eaccess \ err \ errx \ explicit_bzero \ -- cgit v1.2.3-55-g7522