Re: shmget with SHM_HUGETLB flag: Operation not permitted

From: Chris Wright
Date: Thu Feb 26 2004 - 19:35:32 EST


* Chris Wright (chrisw@xxxxxxxx) wrote:
> did you try setpcaps? smth like setpcaps cap_ipc_lock+e <pid>

bah, sorry, i should point out, that isn't going to work w/out CAP_SETPCAP
which is disabled. you'll want to start with full privs (i.e. root) and
drop all but CAP_IPC_LOCK. SuSE used to have a tool called compartment
that helped with this, might google for it.

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/