From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752472Ab3HFIBp (ORCPT ); Tue, 6 Aug 2013 04:01:45 -0400 Received: from intranet.asianux.com ([58.214.24.6]:56322 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284Ab3HFIBo (ORCPT ); Tue, 6 Aug 2013 04:01:44 -0400 X-Spam-Score: -100.8 Message-ID: <5200AD26.8070701@asianux.com> Date: Tue, 06 Aug 2013 16:00:38 +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 setfsgid(), return the current gid when error occurs 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 setfsgid(). Patch 1 for bug fix: return the current gid when error occurs. Patch 2 for cleaning code: remove useless variable 'old_fsgid'. Signed-off-by: Chen Gang -- kernel/sys.c | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-)