On Tue, 10 Jul 2007, Jan Engelhardt wrote:
>
> On Jul 8 2007 22:59, James Morris wrote:
> >@@ -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;
> > }
> >
>
> Not -EPERM?
No, EACCES is what's used.
--
James Morris
<[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]