lkml.org 
[lkml]   [2004]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] mlock-as-nonroot revisted
On Wed, Aug 04, 2004 at 09:31:54AM -0400, Rik van Riel wrote:
> > > @@ -392,8 +392,11 @@ int ipcperms (struct kern_ipc_perm *ipcp
> > > granted_mode >>= 3;
> > > /* is there some bit set in requested_mode but not in granted_mode? */
> > > if ((requested_mode & ~granted_mode & 0007) &&
> > > - !capable(CAP_IPC_OWNER))
> > > - return -1;
> > > + !capable(CAP_IPC_OWNER)) {
> > > + if (!can_do_mlock()) {
> > > + return -1;
> > > + }
> > > + }
> >
> > I still don't see the use for this one. I believe it duplicates
> > SHM_HUGETLB check that's already there.
>
> I'm not sure about your comments here. However, I'm also not
> quite sure about this piece of code. Arjan ? ;)

hmmm looks bullshit now that I look at it again.

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.283 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site