Messages in this thread | | | Date | Fri, 29 Oct 2004 17:01:29 -0700 | From | Chris Wright <> | Subject | Re: 2.6.9 kernel oops with openais |
| |
* Steven Dake (sdake@mvista.com) wrote: > The change was that from 2.6.8 to 2.6.9 the rlimit for memlock was > changed from infinity to 32k (and at the same time, normal users are now > allowed to use mlockall if they dont have alot of memory to mlock). I > fixed up the openais code by doing something evil from uid 0 like: > > struct rlimit rlimit; > > rlimit.rlim_cur = RLIM_INFINITY; > rlimit.rlim_max = RLIM_INFINITY; > setrlimit (RLIMIT_MEMLOCK, &rlimit);
Yeah, that'll do it (although, certainly wouldn't hurt to size it down ;-). Hopefully most users aren't dropping uid (I doubt it, since I hadn't seen this problem pop up before).
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/
| |