Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753834Ab3HFIPJ (ORCPT ); Tue, 6 Aug 2013 04:15:09 -0400 Received: from intranet.asianux.com ([58.214.24.6]:19130 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565Ab3HFIPI (ORCPT ); Tue, 6 Aug 2013 04:15:08 -0400 X-Spam-Score: -100.8 Message-ID: <5200B04D.8070003@asianux.com> Date: Tue, 06 Aug 2013 16:14:05 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Kees Cook , Al Viro , Oleg Nesterov , holt@sgi.com CC: Andrew Morton , "linux-kernel@vger.kernel.org" Subject: Re: kernel/sys.c: for setfsuid(), return the current uid when error occurs References: <5200AD26.8070701@asianux.com> <5200B017.7030401@asianux.com> In-Reply-To: <5200B017.7030401@asianux.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 699 Lines: 23 Please skip it, sorry for bothering you with waste information. On 08/06/2013 04:13 PM, Chen Gang wrote: > They are 2 related patches for setfsuid(). > > Patch 1 for bug fix: return the current uid when error occurs. > Patch 2 for cleaning code: remove useless variable 'old_fsuid'. > > Signed-off-by: Chen Gang > -- > kernel/sys.c | 14 ++++++-------- > 1 files changed, 6 insertions(+), 8 deletions(-) > -- Chen Gang -- 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/