Add and use a generic version of devmem_is_allowed()
[sfrench/cifs-2.6.git] / lib / Kconfig.debug
index d7a7bc3b6098287dc7af87b2c94d5304675401f3..c63fc68f9bf2e85bfc38a9192c70996b7f3f57e7 100644 (file)
@@ -1645,7 +1645,7 @@ config ARCH_HAS_DEVMEM_IS_ALLOWED
 config STRICT_DEVMEM
        bool "Filter access to /dev/mem"
        depends on MMU && DEVMEM
-       depends on ARCH_HAS_DEVMEM_IS_ALLOWED
+       depends on ARCH_HAS_DEVMEM_IS_ALLOWED || GENERIC_LIB_DEVMEM_IS_ALLOWED
        default y if PPC || X86 || ARM64
        help
          If this option is disabled, you allow userspace (root) access to all