Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754321AbbKQR1i (ORCPT ); Tue, 17 Nov 2015 12:27:38 -0500 Received: from h2.hallyn.com ([78.46.35.8]:42433 "EHLO h2.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753444AbbKQR1T (ORCPT ); Tue, 17 Nov 2015 12:27:19 -0500 Date: Tue, 17 Nov 2015 11:27:17 -0600 From: "Serge E. Hallyn" To: Yaowei Bai Cc: james.l.morris@oracle.com, serge@hallyn.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] security: remove unused cap_is_fs_cap function Message-ID: <20151117172717.GA11708@mail.hallyn.com> References: <1447745124-8580-1-git-send-email-baiyaowei@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447745124-8580-1-git-send-email-baiyaowei@cmss.chinamobile.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1320 Lines: 38 On Tue, Nov 17, 2015 at 03:25:23PM +0800, Yaowei Bai wrote: > Since commit 3bc1fa8a ("LSM: remove BSD secure level security module") > there is no user of cap_is_fs_cap any more, so remove it. > > Signed-off-by: Yaowei Bai Acked-by: Serge Hallyn > --- > include/linux/capability.h | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/include/linux/capability.h b/include/linux/capability.h > index af9f0b9..b032003 100644 > --- a/include/linux/capability.h > +++ b/include/linux/capability.h > @@ -171,12 +171,6 @@ static inline int cap_issubset(const kernel_cap_t a, const kernel_cap_t set) > > /* Used to decide between falling back on the old suser() or fsuser(). */ > > -static inline int cap_is_fs_cap(int cap) > -{ > - const kernel_cap_t __cap_fs_set = CAP_FS_SET; > - return !!(CAP_TO_MASK(cap) & __cap_fs_set.cap[CAP_TO_INDEX(cap)]); > -} > - > static inline kernel_cap_t cap_drop_fs_set(const kernel_cap_t a) > { > const kernel_cap_t __cap_fs_set = CAP_FS_SET; > -- > 1.9.1 > > -- 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/