Non-root tag resolution (LABEL=, UUID=) in mount/umount depends on
udev support in libmount. Without it, suid mount/umount cannot
resolve tags for unprivileged users since direct device probing
is disabled for security reasons.
Signed-off-by: Karel Zak <kzak@redhat.com>
)
])
AM_CONDITIONAL([USE_LIBMOUNT_UDEV_SUPPORT], [test "x$libmount_udev_support" = xyes])
+AS_IF([test "x$libmount_udev_support" != xyes && test "x$build_libmount" = xyes], [
+ AC_MSG_WARN([libmount udev support is disabled; non-root tag resolution (LABEL=, UUID=) in mount/umount will not work])
+])
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [directory for systemd unit files (requires systemd support)]),
conf.set('USE_LIBMOUNT_UDEV_SUPPORT',
get_option('build-libmount-udev-support').allowed() and have ? 1 : false)
+if not (get_option('build-libmount-udev-support').allowed() and have)
+ warning('libmount udev support is disabled; non-root tag resolution (LABEL=, UUID=) ' +
+ 'in mount/umount will not work')
+endif
+
lib_udev = dependency(
'libudev',
required : get_option('systemd'))