lkml.org 
[lkml]   [2011]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 05/10] user namespace: clamp down users of cap_raised
Quoting Andrew G. Morgan (morgan@kernel.org):
> Serge,
>
> It seems as if this whole thing is really idiomatic. How about?
>
> #define IN_ROOT_USER_NS_CAPABLE(cap) \
> ((current_user_ns() == &init_user_ns) && cap_raised(current_cap(), cap))

My objection to this was that it seems to encourage others to use it :) I'm
not sure we want that. Also, IN_ROOT_USER_NS seems more generally useful.

But if I'm the only one who feels this way I'll go ahead and do it...

thanks,
-serge


\
 
 \ /
  Last update: 2011-10-24 19:31    [W:0.057 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site