[POWERPC] 8xxx: Convert #include of asm/of_{platform, device}.h into linux/of_{platfo...
[platform/kernel/linux-starfive.git] / security / dummy.c
index 6d895ad..3ccfbbe 100644 (file)
@@ -426,7 +426,7 @@ static int dummy_file_mmap (struct file *file, unsigned long reqprot,
                            unsigned long addr,
                            unsigned long addr_only)
 {
-       if (addr < mmap_min_addr)
+       if ((addr < mmap_min_addr) && !capable(CAP_SYS_RAWIO))
                return -EACCES;
        return 0;
 }