X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=security%2Fdummy.c;h=d6a112ce2975c847390fed605ade3d532f4fe03a;hp=8ffd76405b5b69f0b61057be0ffc3fb2af6adb6a;hb=31c4ab430a448cfb13fc88779d8a870c7af9f72b;hpb=ef2e58ea6b9931c3a4816c66593da49bb20e3b24 diff --git a/security/dummy.c b/security/dummy.c index 8ffd76405b5b..d6a112ce2975 100644 --- a/security/dummy.c +++ b/security/dummy.c @@ -420,8 +420,12 @@ static int dummy_file_ioctl (struct file *file, unsigned int command, static int dummy_file_mmap (struct file *file, unsigned long reqprot, unsigned long prot, - unsigned long flags) + unsigned long flags, + unsigned long addr, + unsigned long addr_only) { + if (addr < mmap_min_addr) + return -EACCES; return 0; }