]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/dummy.c
[POWERPC] add e300c4 entry to cputable
[linux-2.6-omap-h63xx.git] / security / dummy.c
index 6d895ade73de485d9ceab48a28094068550e79b0..3ccfbbe973b6d3014ea9b8cf77015b206688bf6f 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;
 }