summaryrefslogtreecommitdiffstats
path: root/sys-utils/lsmem.c
diff options
context:
space:
mode:
authorKarel Zak2017-10-09 12:44:48 +0200
committerKarel Zak2017-10-20 12:37:04 +0200
commitc08396c7691e1e6a04b6b45892e7e4612ceed8d7 (patch)
tree09e4ba2ea4568ebdc5b33b4e406d49ae1322b673 /sys-utils/lsmem.c
parentbuild-sys: release++ (v2.31) (diff)
downloadkernel-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 'sys-utils/lsmem.c')
0 files changed, 0 insertions, 0 deletions