summaryrefslogtreecommitdiff
path: root/udev.spec
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-28 00:52:20 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:31 -0700
commit8481f8ce2bd2b19ebcf3cb96ac6825093f626b0f (patch)
tree9311b5e7fe1b85b1d5645d1b3dd4a4cfc0ab7737 /udev.spec
parent89067448b935d580496555f257dd5512c4c39098 (diff)
[PATCH] Add initial SELinux support for udev
Based on a patch from Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'udev.spec')
-rw-r--r--udev.spec15
1 files changed, 15 insertions, 0 deletions
diff --git a/udev.spec b/udev.spec
index 63d1835a4a..4cd1f8a94b 100644
--- a/udev.spec
+++ b/udev.spec
@@ -16,6 +16,11 @@
# 1 - DBUS support
%define dbus 0
+# if we want to build SELinux support in or not.
+# 0 - no SELinux support
+# 1 - SELinux support
+%define selinux 1
+
# if we want to enable debugging support in udev. If it is enabled, lots of
# stuff will get sent to the debug syslog.
# 0 - debugging disabled
@@ -67,6 +72,11 @@ make CC="gcc $RPM_OPT_FLAGS" \
%else
USE_DBUS=false \
%endif
+%if %{selinux}
+ USE_SELINUX=true \
+%else
+ USE_SELINUX=false \
+%endif
%if %{debug}
DEBUG=true \
%else
@@ -85,6 +95,11 @@ make DESTDIR=$RPM_BUILD_ROOT install \
%else
USE_DBUS=false \
%endif
+%if %{selinux}
+ USE_SELINUX=true \
+%else
+ USE_SELINUX=false \
+%endif
%if %{lsb}
USE_LSB=true \
%else