Re: [PATCH 3/7] SLIM main patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan Cox <[email protected]> wrote on 08/24/2006 10:15:17 AM:

> Ar Iau, 2006-08-24 am 08:32 -0500, ysgrifennodd Serge E. Hallyn:
> > > You also have to deal with existing mmap() mappings and
> > > outstanding I/O.
> >
> > That she does.
>
> I don't believe so from the patches.
>
> > >    SysV shared memory
> >
> > standard mmap controls should handle this, right?
>
> No its rather independant of mmap

Under the covers it seems to use shmem.  sys_shmget() calls newseg(),
which sets up the shared memory.

> > >    mmap
> >
> > She handles these.
>
> I must have missed where it handles that.

revoke_mmap_wperm() walks current->mm->mmap and removes
the file write permission using do_mprotect().

We have test shmem and mmap programs in the ltp framework that
show this actually works.

Mimi

-
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]
  Powered by Linux