Comment 14 for bug 95089

Revision history for this message
Kees Cook (kees) wrote : Re: [Bug 95089] Re: ubuntu kernel removes CAP_SETPCAP

On Thu, Jun 19, 2008 at 09:53:18PM -0000, Serge Hallyn wrote:
> int main(int argc, char *argv[])
> {
> pid = atoi(argv[1]);
> cap_t mycaps = cap_from_text("all=p");
> capsetp(pid, mycaps);
> cap_free(mycaps);
> }

Ah, good. This is helpful, thanks. :)