userns: make has_capability* into real functions
authorSerge E. Hallyn <serge.hallyn@canonical.com>
Wed, 23 Mar 2011 23:43:21 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:47:06 +0000 (19:47 -0700)
commit3263245de48344ad7bdd0e7256bf1606d2592f88
treea6fa31305f5b6558d882b2dad29ed9a720167ee0
parent8409cca7056113bee3236cb6a8e4d8d4d1eef102
userns: make has_capability* into real functions

So we can let type safety keep things sane, and as a bonus we can remove
the declaration of init_user_ns in capability.h.

Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Daniel Lezcano <daniel.lezcano@free.fr>
Cc: David Howells <dhowells@redhat.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/capability.h
kernel/capability.c