From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753654Ab3HFIQH (ORCPT ); Tue, 6 Aug 2013 04:16:07 -0400 Received: from intranet.asianux.com ([58.214.24.6]:19154 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565Ab3HFIQG (ORCPT ); Tue, 6 Aug 2013 04:16:06 -0400 X-Spam-Score: -100.8 Message-ID: <5200B088.9040305@asianux.com> Date: Tue, 06 Aug 2013 16:15:04 +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: [PATCH 0/2] 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 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(-)