2012-06-03 17:40:44 +00:00
|
|
|
Index: gdb-7.4.50.20120602/gdb/config.in
|
|
|
|
===================================================================
|
|
|
|
--- gdb-7.4.50.20120602.orig/gdb/config.in 2012-06-02 21:49:26.147399232 +0200
|
|
|
|
+++ gdb-7.4.50.20120602/gdb/config.in 2012-06-02 21:49:27.206398845 +0200
|
|
|
|
@@ -222,6 +222,9 @@
|
2012-03-09 18:11:09 +00:00
|
|
|
/* Define if librpm library is being used. */
|
|
|
|
#undef HAVE_LIBRPM
|
|
|
|
|
|
|
|
+/* Define to 1 if you have the `selinux' library (-lselinux). */
|
|
|
|
+#undef HAVE_LIBSELINUX
|
|
|
|
+
|
2012-06-03 17:40:44 +00:00
|
|
|
/* Define to 1 if you have the <libunwind-ia64.h> header file. */
|
|
|
|
#undef HAVE_LIBUNWIND_IA64_H
|
2012-03-09 18:11:09 +00:00
|
|
|
|
2012-06-03 17:40:44 +00:00
|
|
|
@@ -363,6 +366,9 @@
|
2012-03-09 18:11:09 +00:00
|
|
|
/* Define to 1 if you have the `sbrk' function. */
|
|
|
|
#undef HAVE_SBRK
|
|
|
|
|
|
|
|
+/* Define to 1 if you have the <selinux/selinux.h> header file. */
|
|
|
|
+#undef HAVE_SELINUX_SELINUX_H
|
|
|
|
+
|
|
|
|
/* Define to 1 if you have the `setlocale' function. */
|
|
|
|
#undef HAVE_SETLOCALE
|
|
|
|
|
2012-06-03 17:40:44 +00:00
|
|
|
Index: gdb-7.4.50.20120602/gdb/configure
|
|
|
|
===================================================================
|
|
|
|
--- gdb-7.4.50.20120602.orig/gdb/configure 2012-06-02 21:49:27.139398869 +0200
|
|
|
|
+++ gdb-7.4.50.20120602/gdb/configure 2012-06-02 21:49:50.890390179 +0200
|
|
|
|
@@ -12745,6 +12745,64 @@ $as_echo "#define HAVE_PERSONALITY 1" >>
|
2012-03-09 18:11:09 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
+for ac_header in selinux/selinux.h
|
|
|
|
+do :
|
|
|
|
+ ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
|
|
|
|
+if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
|
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
|
+#define HAVE_SELINUX_SELINUX_H 1
|
|
|
|
+_ACEOF
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
|
|
|
|
+$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
|
|
|
|
+if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
+else
|
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
|
+LIBS="-lselinux $LIBS"
|
|
|
|
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
+/* end confdefs.h. */
|
|
|
|
+
|
|
|
|
+/* Override any GCC internal prototype to avoid an error.
|
|
|
|
+ Use char because int might match the return type of a GCC
|
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+extern "C"
|
|
|
|
+#endif
|
|
|
|
+char security_get_boolean_active ();
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+return security_get_boolean_active ();
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
|
|
|
+if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
+ ac_cv_lib_selinux_security_get_boolean_active=yes
|
|
|
|
+else
|
|
|
|
+ ac_cv_lib_selinux_security_get_boolean_active=no
|
|
|
|
+fi
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
|
+fi
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
|
|
|
|
+$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
|
|
|
|
+if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
|
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
|
+#define HAVE_LIBSELINUX 1
|
|
|
|
+_ACEOF
|
|
|
|
+
|
|
|
|
+ LIBS="-lselinux $LIBS"
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
|
|
|
|
# except that the argument to --with-sysroot is optional.
|
2012-06-03 17:40:44 +00:00
|
|
|
Index: gdb-7.4.50.20120602/gdb/gdbserver/config.in
|
|
|
|
===================================================================
|
|
|
|
--- gdb-7.4.50.20120602.orig/gdb/gdbserver/config.in 2012-04-19 21:34:51.000000000 +0200
|
|
|
|
+++ gdb-7.4.50.20120602/gdb/gdbserver/config.in 2012-06-02 21:49:55.945388329 +0200
|
|
|
|
@@ -69,6 +69,9 @@
|
|
|
|
/* Define to 1 if you have the `dl' library (-ldl). */
|
|
|
|
#undef HAVE_LIBDL
|
|
|
|
|
|
|
|
+/* Define to 1 if you have the `selinux' library (-lselinux). */
|
|
|
|
+#undef HAVE_LIBSELINUX
|
|
|
|
+
|
|
|
|
/* Define to 1 if you have the <linux/elf.h> header file. */
|
|
|
|
#undef HAVE_LINUX_ELF_H
|
|
|
|
|
|
|
|
@@ -130,6 +133,9 @@
|
|
|
|
/* Define to 1 if you have the `readlink' function. */
|
|
|
|
#undef HAVE_READLINK
|
|
|
|
|
|
|
|
+/* Define to 1 if you have the <selinux/selinux.h> header file. */
|
|
|
|
+#undef HAVE_SELINUX_SELINUX_H
|
|
|
|
+
|
|
|
|
/* Define to 1 if you have the <sgtty.h> header file. */
|
|
|
|
#undef HAVE_SGTTY_H
|
|
|
|
|
|
|
|
Index: gdb-7.4.50.20120602/gdb/gdbserver/configure
|
|
|
|
===================================================================
|
|
|
|
--- gdb-7.4.50.20120602.orig/gdb/gdbserver/configure 2012-04-20 19:58:49.000000000 +0200
|
|
|
|
+++ gdb-7.4.50.20120602/gdb/gdbserver/configure 2012-06-02 21:49:54.485388864 +0200
|
|
|
|
@@ -5532,6 +5532,64 @@ if $want_ipa ; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
+for ac_header in selinux/selinux.h
|
|
|
|
+do :
|
|
|
|
+ ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
|
|
|
|
+if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
|
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
|
+#define HAVE_SELINUX_SELINUX_H 1
|
|
|
|
+_ACEOF
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
|
|
|
|
+$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
|
|
|
|
+if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
+else
|
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
|
+LIBS="-lselinux $LIBS"
|
|
|
|
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
+/* end confdefs.h. */
|
|
|
|
+
|
|
|
|
+/* Override any GCC internal prototype to avoid an error.
|
|
|
|
+ Use char because int might match the return type of a GCC
|
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+extern "C"
|
|
|
|
+#endif
|
|
|
|
+char security_get_boolean_active ();
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+return security_get_boolean_active ();
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
|
|
|
+if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
+ ac_cv_lib_selinux_security_get_boolean_active=yes
|
|
|
|
+else
|
|
|
|
+ ac_cv_lib_selinux_security_get_boolean_active=no
|
|
|
|
+fi
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
|
+fi
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
|
|
|
|
+$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
|
|
|
|
+if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
|
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
|
+#define HAVE_LIBSELINUX 1
|
|
|
|
+_ACEOF
|
|
|
|
+
|
|
|
|
+ LIBS="-lselinux $LIBS"
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|