aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorharald@redhat.com <harald@redhat.com>2004-10-05 23:39:05 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:02 -0700
commit9825617b078c2122d130676e934ce21714b60e8b (patch)
tree05c15f0fb69faf4f0a2bd42031e52777d1e7a284 /Makefile
parentff213aecf68b3427f0a8b2c8a1074851b1511299 (diff)
downloadudev-9825617b078c2122d130676e934ce21714b60e8b.tar.gz
[PATCH] PATCH selinux for udev
Daniel Walsh's working selinux patch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 24677d41..9405b25c 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,8 @@ USE_LOG = true
# Leave this set to `false' for production use.
DEBUG = false
+# Set this to compile with Security-Enhanced Linux support.
+USE_SELINUX = false
ROOT = udev
DAEMON = udevd
@@ -170,6 +172,11 @@ else
LDFLAGS =
endif
+ifeq ($(strip $(USE_SELINUX)),true)
+ CFLAGS += -DUSE_SELINUX
+ LIB_OBJS += -lselinux
+endif
+
CFLAGS += -I$(PWD)/libsysfs
# config files automatically generated
@@ -222,6 +229,7 @@ HEADERS = udev.h \
udevdb.h \
klibc_fixups.h \
logging.h \
+ selinux.h \
list.h
ifeq ($(strip $(USE_KLIBC)),true)