capabitlies: ns_capable can use the cap helpers rather than lsm call
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:58 +0000 (18:52 -0500)
commitd2a7009f0bb03fa22ad08dd25472efa0568126b9
treea24f4739d1063b96789770fbc463069d96bde2f8
parent105ddf49cd301b7929a92f269440e8e562ef19db
capabitlies: ns_capable can use the cap helpers rather than lsm call

Just to reduce the number of places to change if we every change the LSM
hook, use the capability helpers internally when possible.

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