X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=security%2Fdummy.c;h=d6a112ce2975c847390fed605ade3d532f4fe03a;hb=5bae7ac9feba925fd0099057f6b23d7be80b7b41;hp=8ffd76405b5b69f0b61057be0ffc3fb2af6adb6a;hpb=b643b0fdbc59cf6bbb086974b29d2571e9e9f646;p=karo-tx-linux.git 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; }