Commit a6c8c690 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

kernel/capability.c: code clean-up

- EXPORT_SYMBOL

- typo: unexpectidly->unexpectedly

- function prototype over 80 characters
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 462b29b8
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
*/ */
const kernel_cap_t __cap_empty_set = CAP_EMPTY_SET; const kernel_cap_t __cap_empty_set = CAP_EMPTY_SET;
EXPORT_SYMBOL(__cap_empty_set); EXPORT_SYMBOL(__cap_empty_set);
int file_caps_enabled = 1; int file_caps_enabled = 1;
...@@ -189,7 +188,7 @@ SYSCALL_DEFINE2(capget, cap_user_header_t, header, cap_user_data_t, dataptr) ...@@ -189,7 +188,7 @@ SYSCALL_DEFINE2(capget, cap_user_header_t, header, cap_user_data_t, dataptr)
* *
* An alternative would be to return an error here * An alternative would be to return an error here
* (-ERANGE), but that causes legacy applications to * (-ERANGE), but that causes legacy applications to
* unexpectidly fail; the capget/modify/capset aborts * unexpectedly fail; the capget/modify/capset aborts
* before modification is attempted and the application * before modification is attempted and the application
* fails. * fails.
*/ */
...@@ -395,7 +394,8 @@ EXPORT_SYMBOL(ns_capable); ...@@ -395,7 +394,8 @@ EXPORT_SYMBOL(ns_capable);
* This does not set PF_SUPERPRIV because the caller may not * This does not set PF_SUPERPRIV because the caller may not
* actually be privileged. * actually be privileged.
*/ */
bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap) bool file_ns_capable(const struct file *file, struct user_namespace *ns,
int cap)
{ {
if (WARN_ON_ONCE(!cap_valid(cap))) if (WARN_ON_ONCE(!cap_valid(cap)))
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment