Re: disable-cap-mlock

From: Chris Wright (chrisw_at_osdl.org)
Date: 04/02/04

  • Next message: Andrew Morton: "Re: Properly stop kernel threads on aic7xxx"
    Date:	Thu, 1 Apr 2004 16:59:44 -0800
    To: Andrea Arcangeli <andrea@suse.de>
    
    

    * Andrea Arcangeli (andrea@suse.de) wrote:
    > On Thu, Apr 01, 2004 at 06:08:18PM -0500, Rik van Riel wrote:
    > > Oracle seems to be using it just fine in a certain 2.4
    > > based kernel, so why exactly do you think it would be
    > > useless for the problem you want to solve ?
    > >
    > > Also, what would need to be fixed in order for it to
    > > not be useless ? ;)
    >
    > tell me how to call shmget(SHM_HUGETLB) without having the CAP_IPC_LOCK
    > with the rlimit patch.

    Account for the equivalent "locked" huge pages on shmget. I did something
    like this when porting the mlock patch to 2.6 a month or so ago. I also
    recall finding a couple problems along the way, but it's been a while.
    I'll dig up what I have and send it in.

    thanks,
    -chris

    -- 
    Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Andrew Morton: "Re: Properly stop kernel threads on aic7xxx"

    Relevant Pages

    • Re: lowmem_reserve (replaces protection)
      ... On Mon, 25 Oct 2004, Andrea Arcangeli wrote: ... > the 2.4 kernel. ... The gratituous renaming of variable and function names makes ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: secure computing for 2.6.7
      ... On Sun, 2004-08-01 at 11:01, Andrea Arcangeli wrote: ... the actual kernel objects. ... the untrusted code in a virtual machine, using something like Xen, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4.23aa2 (bugfixes and important VM improvements for the high end)
      ... On Thu, 4 Mar 2004, Andrea Arcangeli wrote: ... All the CPUs use the _same_ mm_struct in kernel space, ... Maybe it is in the 2.6 patch set, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] sched: fix scheduling latencies for !PREEMPT kernels
      ... On Tue, 2004-09-14 at 17:03 +0200, Andrea Arcangeli wrote: ... I'd vaguely prefer to clean up the BKL users... ... involves working with some of the dirtiest code in the kernel that's ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 1/3] 2.6.8-rc4-mm1 - Fix UML build
      ... can access them all, and initialized data all before uninitialized, so ... SYMLINKS:= $,$/$f) ... semaphore.c-dir = kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)