Commit fc3a7889 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] security: remove empty build of capability.o

From: Chris Wright <chrisw@osdl.org>

The build includes capability.c when CONFIG_SECURITY=n, yet the whole file is
ifdef'd out.  Remove unnecessary build step as well as superfluous ifdefs.
parent cd8d1252
......@@ -6,7 +6,7 @@ subdir-$(CONFIG_SECURITY_SELINUX) += selinux
# if we don't select a security model, use the default capabilities
ifneq ($(CONFIG_SECURITY),y)
obj-y += commoncap.o capability.o
obj-y += commoncap.o
endif
# Object file lists
......
......@@ -23,9 +23,6 @@
#include <linux/netlink.h>
#include <linux/ptrace.h>
#ifdef CONFIG_SECURITY
static struct security_operations capability_ops = {
.ptrace = cap_ptrace,
.capget = cap_capget,
......@@ -99,5 +96,3 @@ module_exit (capability_exit);
MODULE_DESCRIPTION("Standard Linux Capabilities Security Module");
MODULE_LICENSE("GPL");
#endif /* CONFIG_SECURITY */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment