diff options
author | Karel Zak | 2017-10-09 12:44:48 +0200 |
---|---|---|
committer | Karel Zak | 2017-10-20 12:37:04 +0200 |
commit | c08396c7691e1e6a04b6b45892e7e4612ceed8d7 (patch) | |
tree | 09e4ba2ea4568ebdc5b33b4e406d49ae1322b673 /configure.ac | |
parent | build-sys: release++ (v2.31) (diff) | |
download | kernel-qcow2-util-linux-c08396c7691e1e6a04b6b45892e7e4612ceed8d7.tar.gz kernel-qcow2-util-linux-c08396c7691e1e6a04b6b45892e7e4612ceed8d7.tar.xz kernel-qcow2-util-linux-c08396c7691e1e6a04b6b45892e7e4612ceed8d7.zip |
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 <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 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 \ |