Re: [PATCH] Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check

From: Serge E. Hallyn
Date: Wed Jul 18 2007 - 13:19:03 EST


Quoting Serge E. Hallyn (serge@xxxxxxxxxx):
> Quoting Satyam Sharma (ssatyam@xxxxxxxxxxxxxx):
> > From: Satyam Sharma <ssatyam@xxxxxxxxxxxxxx>
> >
> > [PATCH] Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
> >
> > Introduce is_owner_or_cap() macro in fs.h, and convert over relevant
> > users to it. This is done because we want to avoid bugs in the future
>
> I like the idea - it will make future user namespace/per-container
> capability patches much cleaner by localizing a lot of the changes.
>
> (haven't tested the patch yet, but it looks trivial enough, and I will
> test later today)

tested fine for me.

thanks,
-serge
-
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/