]> git.ipfire.org Git - thirdparty/util-linux.git/commit - configure.ac
libmount: use eacess() rather than open() to check mtab/utab
authorKarel Zak <kzak@redhat.com>
Mon, 9 Oct 2017 10:44:48 +0000 (12:44 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Oct 2017 10:37:04 +0000 (12:37 +0200)
commitc08396c7691e1e6a04b6b45892e7e4612ceed8d7
tree09e4ba2ea4568ebdc5b33b4e406d49ae1322b673
parent27e66e59a39f63cfbc120bf1d26bc6b63f1b4f6c
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>
configure.ac
libmount/src/utils.c