Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758108AbbEWSHs (ORCPT ); Sat, 23 May 2015 14:07:48 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:59861 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754116AbbEWSHq (ORCPT ); Sat, 23 May 2015 14:07:46 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Shailendra Verma Cc: Andy Lutomirski , Al Viro , Andrew Morton , Fabian Frederick , linux-kernel@vger.kernel.org References: <1432357647-4135-1-git-send-email-shailendra.capricorn@gmail.com> Date: Sat, 23 May 2015 13:02:52 -0500 In-Reply-To: <1432357647-4135-1-git-send-email-shailendra.capricorn@gmail.com> (Shailendra Verma's message of "Sat, 23 May 2015 10:37:27 +0530") Message-ID: <87382n2mur.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-AID: U2FsdGVkX18q07asSeZAmHVM7r4tCmguYh3EXpPSdX4= X-SA-Exim-Connect-IP: 67.3.205.90 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 TR_Symld_Words too many words that have symbols inside * 0.7 XMSubLong Long Subject * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;Shailendra Verma X-Spam-Relay-Country: X-Spam-Timing: total 506 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 4.5 (0.9%), b_tie_ro: 3.4 (0.7%), parse: 0.89 (0.2%), extract_message_metadata: 3.0 (0.6%), get_uri_detail_list: 1.26 (0.2%), tests_pri_-1000: 3.3 (0.7%), tests_pri_-950: 1.07 (0.2%), tests_pri_-900: 0.88 (0.2%), tests_pri_-400: 18 (3.5%), check_bayes: 17 (3.3%), b_tokenize: 5 (1.0%), b_tok_get_all: 6 (1.1%), b_comp_prob: 1.54 (0.3%), b_tok_touch_all: 2.4 (0.5%), b_finish: 0.69 (0.1%), tests_pri_0: 461 (91.2%), tests_pri_500: 4.5 (0.9%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] kernel:user_namespace - Fix for typos in comments. X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2474 Lines: 54 Shailendra Verma writes: > Signed-off-by: Shailendra Verma > --- > kernel/user_namespace.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c > index 4109f83..02a1197 100644 > --- a/kernel/user_namespace.c > +++ b/kernel/user_namespace.c > @@ -69,7 +69,7 @@ int create_user_ns(struct cred *new) > /* > * Verify that we can not violate the policy of which files > * 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. > */ > if (current_chrooted()) > @@ -617,7 +617,7 @@ static ssize_t map_write(struct file *file, const char __user *buf, > * > * There is a one time data dependency between reading the > * count of the extents and the values of the extents. The > - * desired behavior is to see the values of the extents that ^^^^^^^^ In american englic behavior is a correct spelling. I don't know why the brits throw in extraneous letters. > + * desired behaviour is to see the values of the extents that > * were written before the count of the extents. > * > * To achieve this smp_wmb() is used on guarantee the write > @@ -716,7 +716,7 @@ static ssize_t map_write(struct file *file, const char __user *buf, > (next_line != NULL)) > goto out; > } > - /* Be very certaint the new map actually exists */ > + /* Be very certain the new map actually exists */ > if (new_map.nr_extents == 0) > goto out; > > @@ -841,7 +841,7 @@ static bool new_idmap_permitted(const struct file *file, > > /* Allow the specified ids if we have the appropriate capability > * (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 had the appropriate capability. > */ > if (ns_capable(ns->parent, cap_setid) && > file_ns_capable(file, ns->parent, cap_setid)) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/