[lkml]   [2004]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: shmget with SHM_HUGETLB flag: Operation not permitted

    On Thu, Feb 26, 2004 at 04:06:16PM -0800, Chris Wright wrote:
    > * Jochen Roemling ( wrote:
    > > Chris Wright wrote:
    > > if (!capable(CAP_IPC_LOCK)) {
    > > err = -EPERM;
    > > goto out;
    > > }
    > >
    > > There is nothing around that says: "Allow this only without HUGETLB".
    > > Are you sure that this capability is my problem?
    > Yes, take a look at fs/hugetlbfs/inode.c::hugetlb_zero_setup()

    Rik had a patch in rhel3 for nonroot mlock() which made this all work,
    I will post a patch for 2.6. from what I understand it's very useful for
    the gpg folks to have, eg wide audience for this patch. just need to do
    a bit more testing and having Rik review it then ll send it out (or
    maybe he feels like getting shot and he will ;)


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:01    [W:0.021 / U:10.152 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site