aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-01-25 15:48:36 +0100
committerUlrich Müller <ulm@gentoo.org>2014-01-25 15:48:36 +0100
commitf7e6317411b1453aa4876c69985c7a21e9186ced (patch)
tree0edebda64e1849669a60b1c80adc44f0a2eafee5
parentFix failure in unexec with hardened kernel, bug 456970. (diff)
downloademacs-patches-f7e6317411b1453aa4876c69985c7a21e9186ced.tar.gz
emacs-patches-f7e6317411b1453aa4876c69985c7a21e9186ced.tar.bz2
emacs-patches-f7e6317411b1453aa4876c69985c7a21e9186ced.zip
Update PaX/xattr patch, bug 497498.emacs-24.3-patches-5emacs-23.4-patches-10
-rw-r--r--emacs/23.4/15_all_pax-xattr.patch3
-rw-r--r--emacs/24.3/04_all_pax-xattr.patch3
2 files changed, 4 insertions, 2 deletions
diff --git a/emacs/23.4/15_all_pax-xattr.patch b/emacs/23.4/15_all_pax-xattr.patch
index 53d97c3..040dacf 100644
--- a/emacs/23.4/15_all_pax-xattr.patch
+++ b/emacs/23.4/15_all_pax-xattr.patch
@@ -1,5 +1,6 @@
Fix failure in unexec with hardened Linux kernel and XATTR_PAX_FLAGS=y.
https://bugs.gentoo.org/456970
+https://bugs.gentoo.org/497498
--- emacs-23.4-orig/configure.in
+++ emacs-23.4/configure.in
@@ -39,7 +40,7 @@ https://bugs.gentoo.org/456970
#ifndef CANNOT_DUMP
test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT)
+ test "X$(SETFATTR)" = X \
-+ || $(SETFATTR) -n user.pax.flags -v r temacs$(EXEEXT)
++ || $(SETFATTR) -n user.pax.flags -v er temacs$(EXEEXT)
#endif
/* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
diff --git a/emacs/24.3/04_all_pax-xattr.patch b/emacs/24.3/04_all_pax-xattr.patch
index 90346ba..06396c3 100644
--- a/emacs/24.3/04_all_pax-xattr.patch
+++ b/emacs/24.3/04_all_pax-xattr.patch
@@ -1,5 +1,6 @@
Fix failure in unexec with hardened Linux kernel and XATTR_PAX_FLAGS=y.
https://bugs.gentoo.org/456970
+https://bugs.gentoo.org/497498
--- emacs-24.3-orig/configure.ac
+++ emacs-24.3/configure.ac
@@ -39,7 +40,7 @@ https://bugs.gentoo.org/456970
test "$(CANNOT_DUMP)" = "yes" || \
test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT)
+ test "$(CANNOT_DUMP)" = "yes" || test "X$(SETFATTR)" = X || \
-+ $(SETFATTR) -n user.pax.flags -v r temacs$(EXEEXT)
++ $(SETFATTR) -n user.pax.flags -v er temacs$(EXEEXT)
## The following oldxmenu-related rules are only (possibly) used if
## HAVE_X11 && !USE_GTK, but there is no harm in always defining them