diff --git a/security/dummy.c b/security/dummy.c index 6d895ade73de485d9ceab48a28094068550e79b0..3ccfbbe973b6d3014ea9b8cf77015b206688bf6f 100644 --- a/security/dummy.c +++ b/security/dummy.c @@ -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; }