Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1270928

[PATCH 1/2] security: remove unused cap_is_fs_cap function

From Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] security: remove unused cap_is_fs_cap function
Date 2015-11-17 08:30 +0100
Message-ID <qvISd-1Vh-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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 <baiyaowei@cmss.chinamobile.com>
---
 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/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] security: remove unused cap_is_fs_cap function Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2015-11-17 08:30 +0100
  [PATCH 2/2] security/capability.h: cap_issubset/isclear can be boolean Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2015-11-17 08:30 +0100
    Re: [PATCH 2/2] security/capability.h: cap_issubset/isclear can be  boolean "Serge E. Hallyn" <serge@hallyn.com> - 2015-11-17 18:40 +0100
    Re: [PATCH 2/2] security/capability.h: cap_issubset/isclear can be  boolean James Morris <jmorris@namei.org> - 2015-11-18 01:00 +0100
  Re: [PATCH 1/2] security: remove unused cap_is_fs_cap function "Serge E. Hallyn" <serge@hallyn.com> - 2015-11-17 18:30 +0100
  Re: [PATCH 1/2] security: remove unused cap_is_fs_cap function James Morris <jmorris@namei.org> - 2015-11-18 01:00 +0100

csiph-web