Re: shmget with SHM_HUGETLB flag: Operation not permitted
From: Jochen Roemling
Date: Thu Feb 26 2004 - 19:37:51 EST
Chris Wright wrote:
did you try setpcaps? smth like setpcaps cap_ipc_lock+e <pid>
Ok. One step further now. The syntax seems correct now. I tried to grant
capabilities to the user's shell:
roesrv01~ # setpcaps cap_ipc_lock+e 2864
[caps set to:
= cap_ipc_lock+e
]
Failed to set cap's on process `2864': (Operation not permitted)
and with the setcap tool again:
roesrv01~ # setcap cap_ipc_lock+e a.out
Failed to set capabilities on file `a.out'
(Function not implemented)
Hmmm. What do we do now?
Are you sure that this capability is my problem?
Yes, take a look at fs/hugetlbfs/inode.c::hugetlb_zero_setup()
Ok, this would explain it. But what role plays the pseudo-filesystem in
this case? I don't have it mounted. Isn't it only needed when using
mmap, not shmget? I guess, I have a serious lack of knownledge here.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/