diff options
Diffstat (limited to 'sys-fs/eudev/files/eudev-fix-selinux.patch')
-rw-r--r-- | sys-fs/eudev/files/eudev-fix-selinux.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sys-fs/eudev/files/eudev-fix-selinux.patch b/sys-fs/eudev/files/eudev-fix-selinux.patch deleted file mode 100644 index ad13a59d5400..000000000000 --- a/sys-fs/eudev/files/eudev-fix-selinux.patch +++ /dev/null @@ -1,49 +0,0 @@ -commit 26e92619267df364bac4aed29376a36669fb53d3 -Author: Ian Stakenvicius <axs@gentoo.org> -Date: Mon Jan 28 11:16:31 2013 -0500 - - Add missing selinux code to udev core (convenience lib) - - Original Author: Alexey D. (TZ86) - Signed-off-by: Ian Stakenvicius <axs@gentoo.org> - Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> - -diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am -index 972c275..866d2c2 100644 ---- a/src/udev/Makefile.am -+++ b/src/udev/Makefile.am -@@ -72,7 +72,8 @@ libudev_core_la_CFLAGS = \ - - libudev_core_la_LIBADD = \ - $(top_builddir)/src/libudev/libudev-private.la \ -- $(BLKID_LIBS) -+ $(BLKID_LIBS) \ -+ $(SELINUX_LIBS) - - if HAVE_MODULES - libudev_core_la_SOURCES += \ -diff --git a/src/udev/label.c b/src/udev/label.c -index d353da5..7e8d8f9 100644 ---- a/src/udev/label.c -+++ b/src/udev/label.c -@@ -31,12 +31,19 @@ - #include "path-util.h" - - #ifdef HAVE_SELINUX --#include "selinux-util.h" -+#include <stdbool.h> - #include <selinux/selinux.h> - #include <selinux/label.h> - - static struct selabel_handle *label_hnd = NULL; -+static int use_selinux_cached = -1; - -+bool use_selinux(void) { -+ if (use_selinux_cached < 0) -+ use_selinux_cached = is_selinux_enabled() > 0; -+ -+ return use_selinux_cached; -+} - #endif - - int label_init(const char *prefix) { |