Messages in this thread | | | Date | Wed, 12 Oct 2011 22:51:47 +0200 | From | Lennart Poettering <> | Subject | Re: A Plumber???s Wish List for Linux |
| |
On Tue, 11.10.11 08:49, Andrew G. Morgan (morgan@kernel.org) wrote:
> > The benefit of Kai Gai's patch was that it exported the actual names > of the capabilities rather than have them only stored in libcap. > > It is possible to use CAP_IS_SUPPORTED(cap) (in libcap-2.21) to figure > out the maximum capability supported by the running kernel. > > https://sites.google.com/site/fullycapable/release-notes-for-libcap
Oh, hmm, interesting. I have now changed my code to make use of this, but I can't say it's pretty, because I basically have to search linearly for the highest capability supported if that's what I want to know.
So, I guess this solves the problem for now, but I'd still like to see a proper API for this.
Anyway, thanks for the pointer,
Lennart
-- Lennart Poettering - Red Hat, Inc.
| |