mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
b83e3e48c9
c38367c73f
was meant to eliminate runtime
function pointer modifications in autotools checks because they were
prone to false negatives on kernels hardened by the PaX project.
Unfortunately, I missed the xattr_handler and super_block->s_bdi
autotools checks. Recent changes to PaX constified
xattr_handler->get/set, which lead me to discover this oversight.
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1433
22 lines
435 B
Plaintext
22 lines
435 B
Plaintext
dnl #
|
|
dnl # 2.6.32 API change
|
|
dnl # Private backing_device_info interfaces available
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_BDI], [
|
|
AC_MSG_CHECKING([whether super_block has s_bdi])
|
|
ZFS_LINUX_TRY_COMPILE([
|
|
#include <linux/fs.h>
|
|
|
|
static const struct super_block
|
|
sb __attribute__ ((unused)) {
|
|
.s_bdi = NULL,
|
|
}
|
|
],[
|
|
],[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_BDI, 1, [struct super_block has s_bdi])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|