capabilities: call has_ns_capability from has_capability
authorEric Paris <eparis@redhat.com>
Tue, 3 Jan 2012 17:25:15 +0000 (12:25 -0500)
committerEric Paris <eparis@redhat.com>
Thu, 5 Jan 2012 23:52:56 +0000 (18:52 -0500)
commit25e75703410a84b80623da3653db6b70282e5c6a
tree83a5737f243ec6f95271e622fbde4c77b7ccba9f
parent2920a8409de5a51575d03deca07e5bb2be6fc98d
capabilities: call has_ns_capability from has_capability

Declare the more specific has_ns_capability first in the code and then call it
from has_capability.  The declaration reversal isn't stricty necessary since
they are both declared in header files, but it just makes sense to put more
specific functions first in the code.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Serge E. Hallyn <serge.hallyn@canonical.com>
kernel/capability.c