* [PATCH] CONFIG_SECURITY_FILE_CAPABILITIES has been gone awhile
@ 2010-04-30 23:42 Serge E. Hallyn
[not found] ` <20100430234224.GA19790-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2010-04-30 23:42 UTC (permalink / raw)
To: Oren Laadan; +Cc: Linux Containers
Thanks Matt for noticing the sbits testcase was screaming at us
about this being broken!
Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
kernel/capability.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/kernel/capability.c b/kernel/capability.c
index ccb8907..c39d6b0 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -316,7 +316,6 @@ SYSCALL_DEFINE2(capset, cap_user_header_t, header, const cap_user_data_t, data)
}
-#ifdef CONFIG_SECURITY_FILE_CAPABILITIES
int apply_securebits(unsigned securebits, struct cred *new)
{
if ((((new->securebits & SECURE_ALL_LOCKS) >> 1)
@@ -361,21 +360,6 @@ static inline int restore_cap_bset(kernel_cap_t bset, struct cred *cred)
return 0;
}
-#else /* CONFIG_SECURITY_FILE_CAPABILITIES */
-
-int apply_securebits(unsigned securebits, struct cred *new)
-{
- /* settable securebits not supported */
- return 0;
-}
-
-static inline int restore_cap_bset(kernel_cap_t bset, struct cred *cred)
-{
- /* bounding sets not supported */
- return 0;
-}
-#endif /* CONFIG_SECURITY_FILE_CAPABILITIES */
-
#ifdef CONFIG_CHECKPOINT
static int do_restore_caps(struct ckpt_capabilities *h, struct cred *cred)
{
--
1.6.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-01 1:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 23:42 [PATCH] CONFIG_SECURITY_FILE_CAPABILITIES has been gone awhile Serge E. Hallyn
[not found] ` <20100430234224.GA19790-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-05-01 1:29 ` Oren Laadan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox