Skip to content

Commit a6c8c69

Browse files
Fabian Fredericktorvalds
authored andcommitted
kernel/capability.c: code clean-up
- EXPORT_SYMBOL - typo: unexpectidly->unexpectedly - function prototype over 80 characters Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 462b29b commit a6c8c69

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎kernel/capability.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525

2626
const kernel_cap_t __cap_empty_set = CAP_EMPTY_SET;
27-
2827
EXPORT_SYMBOL(__cap_empty_set);
2928

3029
int file_caps_enabled = 1;
@@ -189,7 +188,7 @@ SYSCALL_DEFINE2(capget, cap_user_header_t, header, cap_user_data_t, dataptr)
189188
*
190189
* An alternative would be to return an error here
191190
* (-ERANGE), but that causes legacy applications to
192-
* unexpectidly fail; the capget/modify/capset aborts
191+
* unexpectedly fail; the capget/modify/capset aborts
193192
* before modification is attempted and the application
194193
* fails.
195194
*/
@@ -395,7 +394,8 @@ EXPORT_SYMBOL(ns_capable);
395394
* This does not set PF_SUPERPRIV because the caller may not
396395
* actually be privileged.
397396
*/
398-
bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap)
397+
bool file_ns_capable(const struct file *file, struct user_namespace *ns,
398+
int cap)
399399
{
400400
if (WARN_ON_ONCE(!cap_valid(cap)))
401401
return false;

0 commit comments

Comments
 (0)