https://bugzilla.novell.com/show_bug.cgi?id=205752 lmb@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |yxu@novell.com ------- Comment #1 from lmb@novell.com 2006-09-19 05:22 MST ------- POSIX says it _may_ fail with EPERM, not that it _should_. But, here's the code of can_do_mlock(), which is called just before your check: static inline int can_do_mlock(void) { if (capable(CAP_IPC_LOCK)) return 1; if (current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur != 0) return 1; return 0; } So, the CAP_IPC_LOCK _is_ checked already, and EPERM returned in that case. I cannot see how your patch could make a difference here - are you sure the testcase is valid? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.