summaryrefslogtreecommitdiff
path: root/udev_selinux.h
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_selinux.h
parent89067448b935d580496555f257dd5512c4c39098 (diff)
[PATCH] Add initial SELinux support for udev
Based on a patch from Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'udev_selinux.h')
-rw-r--r--udev_selinux.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/udev_selinux.h b/udev_selinux.h
new file mode 100644
index 0000000000..77a1f36bd9
--- /dev/null
+++ b/udev_selinux.h
@@ -0,0 +1,10 @@
+#ifndef UDEV_SELINUX_H
+#define UDEV_SELINUX_H
+
+#ifdef USE_SELINUX
+extern void selinux_add_node(char *filename);
+#else
+static void selinux_add_node(char *filename) { }
+#endif
+
+#endif