59d6552e7d
Added public functions to export context translation to users of libselinux (selinux_trans_to_raw_context, selinux_raw_to_trans_context).
20 lines
519 B
Diff
20 lines
519 B
Diff
diff --exclude-from=exclude -N -u -r nsalibselinux/src/init.c libselinux-1.25.6/src/init.c
|
|
--- nsalibselinux/src/init.c 2005-08-25 16:18:01.000000000 -0400
|
|
+++ libselinux-1.25.6/src/init.c 2005-09-01 11:23:11.000000000 -0400
|
|
@@ -86,6 +86,7 @@
|
|
{
|
|
int (*lib_trans_init)(void) = NULL;
|
|
|
|
+#ifdef __PIC__
|
|
translation_lib_handle = dlopen("libsetrans.so.0", RTLD_NOW);
|
|
if (!translation_lib_handle)
|
|
return;
|
|
@@ -108,6 +109,7 @@
|
|
return;
|
|
|
|
context_translations = 1;
|
|
+#endif
|
|
}
|
|
|
|
static void fini_translations(void)
|