Commit a12f4f85 authored by Xiaofeng Cao's avatar Xiaofeng Cao Committed by Linus Torvalds

kernel/user_namespace.c: fix typos

change 'verifing' to 'verifying'
change 'certaint' to 'certain'
change 'approprpiate' to 'appropriate'

Link: https://lkml.kernel.org/r/20210317100129.12440-1-caoxiaofeng@yulong.comSigned-off-by: default avatarXiaofeng Cao <caoxiaofeng@yulong.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 48207f7d
...@@ -85,7 +85,7 @@ int create_user_ns(struct cred *new) ...@@ -85,7 +85,7 @@ int create_user_ns(struct cred *new)
/* /*
* Verify that we can not violate the policy of which files * Verify that we can not violate the policy of which files
* may be accessed that is specified by the root directory, * may be accessed that is specified by the root directory,
* by verifing that the root directory is at the root of the * by verifying that the root directory is at the root of the
* mount namespace which allows all files to be accessed. * mount namespace which allows all files to be accessed.
*/ */
ret = -EPERM; ret = -EPERM;
...@@ -1014,7 +1014,7 @@ static ssize_t map_write(struct file *file, const char __user *buf, ...@@ -1014,7 +1014,7 @@ static ssize_t map_write(struct file *file, const char __user *buf,
goto out; goto out;
ret = -EINVAL; ret = -EINVAL;
} }
/* Be very certaint the new map actually exists */ /* Be very certain the new map actually exists */
if (new_map.nr_extents == 0) if (new_map.nr_extents == 0)
goto out; goto out;
...@@ -1169,7 +1169,7 @@ static bool new_idmap_permitted(const struct file *file, ...@@ -1169,7 +1169,7 @@ static bool new_idmap_permitted(const struct file *file,
/* Allow the specified ids if we have the appropriate capability /* Allow the specified ids if we have the appropriate capability
* (CAP_SETUID or CAP_SETGID) over the parent user namespace. * (CAP_SETUID or CAP_SETGID) over the parent user namespace.
* And the opener of the id file also had the approprpiate capability. * And the opener of the id file also has the appropriate capability.
*/ */
if (ns_capable(ns->parent, cap_setid) && if (ns_capable(ns->parent, cap_setid) &&
file_ns_capable(file, ns->parent, cap_setid)) file_ns_capable(file, ns->parent, cap_setid))
......
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