* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-05-04 2:24 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-05-04 2:24 UTC (permalink / raw
To: gentoo-commits
commit: 1fb52919d087775b883174d6efdd3c02b325484e
Author: Anthony G. Basile <basile <AT> opensource <DOT> dyc <DOT> edu>
AuthorDate: Wed May 4 02:23:56 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed May 4 02:23:56 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=1fb52919
configure.ac: added check for more headers
---
configure.ac | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index dd6e6dd..fe326ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,15 @@ AM_CONDITIONAL([TEST],[test "x$has_yasm" = "xyes"])
AC_CHECK_LIB([elf], [elf_begin])
# Checks for header files.
-AC_CHECK_HEADERS([fcntl.h stdlib.h unistd.h])
+AC_CHECK_HEADERS([error.h])
+AC_CHECK_HEADERS([fcntl.h])
+AC_CHECK_HEADERS([gelf.h])
+AC_CHECK_HEADERS([stdio.h])
+AC_CHECK_HEADERS([stdlib.h])
+AC_CHECK_HEADERS([string.h])
+AC_CHECK_HEADERS([sys/stat.h])
+AC_CHECK_HEADERS([sys/types.h])
+AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-05-05 19:46 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-05-05 19:46 UTC (permalink / raw
To: gentoo-commits
commit: 1fe9aab862a37ebb377333133560b7790324eb2b
Author: Anthony G. Basile <basile <AT> opensource <DOT> dyc <DOT> edu>
AuthorDate: Thu May 5 19:46:23 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu May 5 19:46:23 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=1fe9aab8
poc/mangle-paxflags.c: remove EI_PAX and PT_PAX_FLAGS from an elf
Makefile.am | 5 +-
configure.ac | 14 +++
poc/Makefile.am | 26 +++++
tests/bad-gnustack.c => poc/bad-mmap.c | 15 ++-
poc/mangle-paxflags.c | 181 ++++++++++++++++++++++++++++++++
tests/Makefile.am | 1 -
tests/bad-gnustack.c | 2 +-
tests/bad32.asm | 2 +-
tests/bad64.asm | 2 +-
9 files changed, 240 insertions(+), 8 deletions(-)
diff --cc poc/Makefile.am
index 0000000,b5d0ae7..e8c94d5
mode 000000,100644..100644
--- a/poc/Makefile.am
+++ b/poc/Makefile.am
@@@ -1,0 -1,4 +1,26 @@@
+ noinst_PROGRAMS = mangle-paxflags bad-mmap
+ mangle_paxflags_SOURCES = mangle-paxflags.c
+ mangle_paxflags_LDADD = -lelf
+ bad_mmap_SOURCES = bad-mmap.c
++
++check_SCRIPTS = poc.sh
++
++poc.sh:
++ @echo "================================================================================"
++ @echo
++ ./mangle-paxflags bad-mmap
++ ./bad-mmap
++ @echo
++ @echo "========================================"
++ @echo
++ ./mangle-paxflags -p bad-mmap
++ ./mangle-paxflags bad-mmap
++ ./bad-mmap
++ @echo
++ @echo "========================================"
++ @echo
++ ./mangle-paxflags -e bad-mmap
++ ./mangle-paxflags bad-mmap
++ ./bad-mmap
++ @echo
++ @echo "================================================================================"
diff --cc poc/bad-mmap.c
index 74105ed,c459abb..04df26d
--- a/poc/bad-mmap.c
+++ b/poc/bad-mmap.c
@@@ -1,24 -1,20 +1,33 @@@
+/*
- bad.c: C source for sample elf with X on GNU_STACK
++ bad-mmap.c: create 4k anonymous mmap with RWX protection
+ Copyright (C) 2011 Anthony G. Basile
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
++
+ #include <stdio.h>
#include <stdlib.h>
+ #include <sys/mman.h>
+ #include <errno.h>
+ #include <string.h>
- int main()
+ int
+ main()
{
- badness();
+ if( mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) != MAP_FAILED )
- {
+ printf("mmap(): succeeded\n");
- return 0;
- }
+ else
- {
+ printf("mmap(): %s\n", strerror(errno));
- return 1;
- }
+ return 0;
}
diff --cc poc/mangle-paxflags.c
index 0000000,9d59a96..76fe56b
mode 000000,100644..100644
--- a/poc/mangle-paxflags.c
+++ b/poc/mangle-paxflags.c
@@@ -1,0 -1,72 +1,181 @@@
+ /*
- fix-gnustack.c: check and optionally remove exec flag on Elf GNU_STACK
++ mangle-paxflags.c: check and optionally remove EI_PAX and/or PT_PAX_FLAGS
+ Copyright (C) 2011 Anthony G. Basile
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <error.h>
+
+ #include <gelf.h>
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+
++// From chpax.h
++#define EI_PAX 14 // Index in e_ident[] where to read flags
++#define HF_PAX_PAGEEXEC 1 // 0: Paging based non-exec pages
++#define HF_PAX_EMUTRAMP 2 // 0: Emulate trampolines
++#define HF_PAX_MPROTECT 4 // 0: Restrict mprotect()
++#define HF_PAX_RANDMMAP 8 // 0: Randomize mmap() base
++#define HF_PAX_RANDEXEC 16 // 1: Randomize ET_EXEC base
++#define HF_PAX_SEGMEXEC 32 // 0: Segmentation based non-exec pages
++
++
++#define PRINT(E,F,I) printf("%s: %s\n", #E, E & F ? ( I ? "enabled" : "disabled" ) : ( I ? "disabled" : "enabled" ) );
++#define CASE(N,P) case P: printf("%d: %s\n", (int)N, #P); break
++
++
++char *
++parse_cmd_args( int c, char *v[], int *flag_ei_pax, int *flag_pt_pax_flags )
++{
++ int i, oc;
++
++ if((c != 2)&&(c != 3)&&(c != 4))
++ error(EXIT_FAILURE, 0, "Usage: %s [-e] [-p] elffile", v[0]);
++
++ *flag_ei_pax = 0;
++ *flag_pt_pax_flags = 0;
++ while((oc = getopt(c, v,":ep")) != -1)
++ switch(oc)
++ {
++ case 'e':
++ *flag_ei_pax = 1;
++ break ;
++ case 'p':
++ *flag_pt_pax_flags = 1;
++ break;
++ case '?':
++ default:
++ error(EXIT_FAILURE, 0, "option -%c is invalid: ignored.", optopt ) ;
++ }
++
++ return v[optind] ;
++}
+
+
+ int
+ main( int argc, char *argv[])
+ {
+ int fd;
++ int flag_ei_pax, flag_pt_pax_flags;
++ int found_ei_pax, found_pt_pax_flags;
+ char *f_name;
+ size_t i, phnum;
+
+ Elf *elf;
++ GElf_Ehdr ehdr;
+ GElf_Phdr phdr;
+
- f_name = argv[1];
++ f_name = parse_cmd_args( argc, argv, &flag_ei_pax, &flag_pt_pax_flags );
+
+ if(elf_version(EV_CURRENT) == EV_NONE)
+ error(EXIT_FAILURE, 0, "Library out of date.");
+
- if((fd = open(f_name, O_RDWR)) < 0)
- error(EXIT_FAILURE, 0, "open() fail.");
- if((elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL)) == NULL)
- error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(-1));
++ if( flag_ei_pax || flag_pt_pax_flags )
++ {
++ if((fd = open(f_name, O_RDWR)) < 0)
++ error(EXIT_FAILURE, 0, "open() fail.");
++ if((elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL)) == NULL)
++ error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(elf_errno()));
++ }
++ else
++ {
++ if((fd = open(f_name, O_RDONLY)) < 0)
++ error(EXIT_FAILURE, 0, "open() fail.");
++ if((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL)
++ error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(elf_errno()));
++ }
++
+ if(elf_kind(elf) != ELF_K_ELF)
+ error(EXIT_FAILURE, 0, "elf_kind() fail: this is not an elf file.");
+
++ if(gelf_getehdr(elf,&ehdr) != &ehdr)
++ error(EXIT_FAILURE, 0, "gelf_getphdr(): %s", elf_errmsg(elf_errno()));
++
++ found_ei_pax = ((u_long) ehdr.e_ident[EI_PAX + 1] << 8) + (u_long) ehdr.e_ident[EI_PAX];
++
++ printf("==== EI_PAX ====\n") ;
++ PRINT(HF_PAX_PAGEEXEC, found_ei_pax, 0);
++ PRINT(HF_PAX_EMUTRAMP, found_ei_pax, 1);
++ PRINT(HF_PAX_MPROTECT, found_ei_pax, 0);
++ PRINT(HF_PAX_RANDMMAP, found_ei_pax, 0);
++ PRINT(HF_PAX_RANDEXEC, found_ei_pax, 1);
++ PRINT(HF_PAX_SEGMEXEC, found_ei_pax, 0);
++ printf("\n");
++
++ if( flag_ei_pax )
++ {
++ printf("Disabling EI_PAX\n\n");
++ ehdr.e_ident[EI_PAX] = 0xFF;
++ ehdr.e_ident[EI_PAX + 1] = 0xFF;
++ if(!gelf_update_ehdr(elf, &ehdr))
++ error(EXIT_FAILURE, 0, "gelf_update_ehdr(): %s", elf_errmsg(elf_errno()));
++ }
++
++ printf("==== PHRDs ====\n") ;
++ found_pt_pax_flags = 0 ;
+ elf_getphdrnum(elf, &phnum);
+ for(i=0; i<phnum; ++i)
+ {
+ if(gelf_getphdr(elf, i, &phdr) != &phdr)
- error(EXIT_FAILURE, 0, "gelf_getphdr(): %s", elf_errmsg(-1));
++ error(EXIT_FAILURE, 0, "gelf_getphdr(): %s", elf_errmsg(elf_errno()));
++
++ switch(phdr.p_type)
++ {
++ CASE(i,PT_NULL);
++ CASE(i,PT_LOAD);
++ CASE(i,PT_DYNAMIC);
++ CASE(i,PT_INTERP);
++ CASE(i,PT_NOTE);
++ CASE(i,PT_SHLIB);
++ CASE(i,PT_PHDR);
++ CASE(i,PT_TLS);
++ CASE(i,PT_NUM);
++ CASE(i,PT_LOOS);
++ CASE(i,PT_GNU_EH_FRAME);
++ CASE(i,PT_GNU_STACK);
++ CASE(i,PT_GNU_RELRO);
++ CASE(i,PT_PAX_FLAGS);
++ CASE(i,PT_LOSUNW);
++ //CASE(i,PT_SUNWBSS);
++ CASE(i,PT_SUNWSTACK);
++ CASE(i,PT_HISUNW);
++ //CASE(i,PT_HIOS);
++ CASE(i,PT_LOPROC);
++ CASE(i,PT_HIPROC);
++ }
+
- if(phdr.p_type == PT_PAX_FLAGS)
++ if((phdr.p_type == PT_PAX_FLAGS) && flag_pt_pax_flags )
+ {
- printf("Found PT_PAX_FLAGS\n");
++ found_pt_pax_flags = 1 ;
+ phdr.p_type = PT_NULL;
+ if(!gelf_update_phdr(elf, i, &phdr))
- error(EXIT_FAILURE, 0, "gelf_update_phdr(): %s", elf_errmsg(-1));
++ error(EXIT_FAILURE, 0, "gelf_update_phdr(): %s", elf_errmsg(elf_errno()));
+ }
+ }
+
++ if( found_pt_pax_flags )
++ printf("Setting PT_PAX_FLAGS to PT_NULL\n\n");
++ else
++ printf("\n\n");
++
+ elf_end(elf);
+ close(fd);
+ }
diff --cc tests/Makefile.am
index ab23520,ab23520..59bf905
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@@ -20,7 -20,7 +20,6 @@@ test.sh
@echo
@echo "Fixed Bad GNU_STACK Elf"
@../src/fix-gnustack bad-gnustack
-- @rm -f good
@echo
@echo "================================================================================"
diff --cc tests/bad-gnustack.c
index 74105ed,74105ed..fa7bcf5
--- a/tests/bad-gnustack.c
+++ b/tests/bad-gnustack.c
@@@ -1,5 -1,5 +1,5 @@@
/*
-- bad.c: C source for sample elf with X on GNU_STACK
++ bad-gnustack.c: C source for sample elf with X on GNU_STACK
Copyright (C) 2011 Anthony G. Basile
This program is free software: you can redistribute it and/or modify
diff --cc tests/bad32.asm
index df8296c,df8296c..8020ac7
--- a/tests/bad32.asm
+++ b/tests/bad32.asm
@@@ -1,4 -1,4 +1,4 @@@
--;test-bad32.asm: 32-bit asm source for sample elf with X on GNU_STACK
++;bad32.asm: 32-bit asm source for sample elf with X on GNU_STACK
;Copyright (C) 2011 Anthony G. Basile
;
;This program is free software: you can redistribute it and/or modify
diff --cc tests/bad64.asm
index 3a8af73,3a8af73..1164095
--- a/tests/bad64.asm
+++ b/tests/bad64.asm
@@@ -1,4 -1,4 +1,4 @@@
--;test-bad64.asm: 64-bit asm source for sample elf with X on GNU_STACK
++;bad64.asm: 64-bit asm source for sample elf with X on GNU_STACK
;Copyright (C) 2011 Anthony G. Basile
;
;This program is free software: you can redistribute it and/or modify
^ permalink raw reply [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-09-18 23:06 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-09-18 23:06 UTC (permalink / raw
To: gentoo-commits
commit: 128c1408ba8db6be3f9ade3dc1420a3bf0cee0a0
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 18 23:06:20 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Sep 18 23:06:20 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=128c1408
configure.ac: working towards release 0.3.x
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index e082850..bc6e0f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
-AC_INIT([elfix], [0.1.3], [http://bugs.gentoo.org/])
+AC_INIT([elfix], [0.3], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/fix-gnustack.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-10-08 19:31 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-10-08 19:31 UTC (permalink / raw
To: gentoo-commits
commit: 7c057a3285d7edb87179b967df2137d757ab8376
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 8 19:30:56 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Oct 8 19:30:56 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=7c057a32
ChangeLog: updated
---
ChangeLog | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c9fa8da..f7b5522 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,25 @@
+2011-10-08 Anthony G. Basile <blueness@gentoo.org>
+
+ * Add python pax module and revdep-pax
+ * Add poc/paxmark-libs
+
+2011-10-03 Anthony G. Basile <blueness@gentoo.org>
+
+ * Code cleanup and fixed make check
+ * Add poc/paxctl-xattr
+
+2011-09-27 Anthony G. Basile <blueness@gentoo.org>
+
+ * Code cleanup and fix PT_PAX flag setting
+
+2011-08-18 Anthony G. Basile <blueness@gentoo.org>
+
+ * Add paxctl-ng
+
2011-04-14 Anthony G. Basile <blueness@gentoo.org>
* Initial release
+ * Add fix-gnustack
-----
Copyright (C) 2011 Anthony G. Basile
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-10-12 10:53 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-10-12 10:53 UTC (permalink / raw
To: gentoo-commits
commit: 6ca628cd38f49422fdb51fbc028a25bb843c2db4
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 12 10:53:47 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 10:53:47 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=6ca628cd
ChangeLog updated
---
ChangeLog | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f7b5522..94e16db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-12 Anthony G. Basile <blueness@gentoo.org>
+
+ * Move actions for options to functions
+ * Add two levels of verbosity
+
2011-10-08 Anthony G. Basile <blueness@gentoo.org>
* Add python pax module and revdep-pax
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-10-17 21:24 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-10-17 21:24 UTC (permalink / raw
To: gentoo-commits
commit: df738b99bcd8ac9da230956aa1e43c61f0816398
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 17 21:24:04 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Oct 17 21:24:04 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=df738b99
ChangeLog updated
---
ChangeLog | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 94e16db..6172e1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-17 Anthony G. Basile <blueness@gentoo.org>
+
+ * add search by full library path
+ * add pax_setflags to python module
+ * add setflags to mismatched binaries/libraries
+ * removed EI_PAX markings, bug #387459
+
2011-10-12 Anthony G. Basile <blueness@gentoo.org>
* Move actions for options to functions
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-10-23 14:57 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-10-23 14:57 UTC (permalink / raw
To: gentoo-commits
commit: 3c8adb51709434bd599ef3d3b50698926f9a6132
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 23 14:57:41 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Oct 23 14:57:41 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=3c8adb51
ChangeLog updated
---
ChangeLog | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6172e1f..e1d8356 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,15 @@
+2011-10-23
+
+ * add XT_PAX read/write in paxct-ng.c and paxmodule.c
+ * create and/or copy XT_PAX flags from PT_PAX in paxctl-ng.c
+ * clean up error handling in paxctl-ng.c
+ * remove EI_PAX doc and add XT_PAX doc
+
2011-10-17 Anthony G. Basile <blueness@gentoo.org>
- * add search by full library path
- * add pax_setflags to python module
- * add setflags to mismatched binaries/libraries
+ * add search by full library path in revdep-pax
+ * add pax_setflags to paxmodule.c
+ * add setflags to mismatched binaries/libraries in revdep-pax
* removed EI_PAX markings, bug #387459
2011-10-12 Anthony G. Basile <blueness@gentoo.org>
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-10-23 15:44 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-10-23 15:44 UTC (permalink / raw
To: gentoo-commits
commit: bea48a9b423ad85c67a34e012d24eb1ce7f01604
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 23 15:44:45 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Oct 23 15:44:45 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=bea48a9b
ChangeLog: removed release info line
---
ChangeLog | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5782e5a..c352f82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,5 @@
2011-10-23
- * Release 0.3.0
* add XT_PAX read/write in paxct-ng.c and paxmodule.c
* create and/or copy XT_PAX flags to/from PT_PAX in paxctl-ng.c
* clean up error handling in paxctl-ng.c
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-11-02 9:30 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-11-02 9:30 UTC (permalink / raw
To: gentoo-commits
commit: 81de53f1496bbc3e27aa3c0ce9127b802349069f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 2 09:30:07 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Nov 2 09:30:07 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=81de53f1
TODO: updated
---
TODO | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/TODO b/TODO
index bde233b..065b0f3 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,5 @@
+2011-11-02 Anthony G. Basile <blueness@gentoo.org>
-Nothing for now, but I'm sure there will be some soon.
-
+ * paxctl-ng: add file globbing
+ * paxctl-ng: if a file fails to open O_RDWR then
+ don't do PT_PAX markings but continue with XT_PAX
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-11-03 19:00 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-11-03 19:00 UTC (permalink / raw
To: gentoo-commits
commit: aa4b064e19e03b6230f5ef3a9ba0242b2a5ed4f3
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 3 19:00:07 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Nov 3 19:00:07 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=aa4b064e
ChangeLog, TODO: updated
---
ChangeLog | 1 +
TODO | 3 ---
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e30cb77..921f736 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
+ * paxctl-ng: add file globbing
* paxctl-ng: if a file fails to open O_RDWR then
don't do PT_PAX markings but continue with XT_PAX
diff --git a/TODO b/TODO
index 537326a..e69de29 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +0,0 @@
-2011-11-02 Anthony G. Basile <blueness@gentoo.org>
-
- * paxctl-ng: add file globbing
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-11-15 19:37 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-11-15 19:37 UTC (permalink / raw
To: gentoo-commits
commit: 375eb4621eb2956f2847ed726d47025259697c2f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 15 19:37:39 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 19:37:39 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=375eb462
Update ChangeLog
---
ChangeLog | 2 ++
README | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 921f736..5c3e57a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
+ * tests/pxtpax: compare pax flags on binary and process
+ * fix-gnustack and paxctl-ng: fix exit code on success
* paxctl-ng: add file globbing
* paxctl-ng: if a file fails to open O_RDWR then
don't do PT_PAX markings but continue with XT_PAX
diff --git a/README b/README
index d7a018e..84ee7b9 100644
--- a/README
+++ b/README
@@ -1,4 +1,3 @@
-Miscellaneous utilities to query and fix Elf binaries
-with an emphasis on hardening.
+Utilities to query and fix Elf binaries with an emphasis on hardening.
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-11-26 22:54 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-11-26 22:54 UTC (permalink / raw
To: gentoo-commits
commit: e334b5df552dec27782a75ef3ef3c3994befb5fc
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 22:54:41 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 22:54:41 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=e334b5df
configure.ac: added --enable-xattr switch
---
configure.ac | 53 +++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 45 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
index 18331f1..46ca874 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,29 +25,66 @@ AC_ARG_ENABLE(
)
AM_CONDITIONAL([TEST],[test "x$has_yasm" = "xyes"])
+AC_ARG_ENABLE(
+ [xattr],
+ AS_HELP_STRING(
+ [--enable-xattr],
+ [enable support for pax markings in xattrs]
+ ),
+ [
+ AS_IF(
+ [test "x$enable_xattr" = "xyes"],
+ [
+ AC_CHECK_HEADERS(
+ [attr/xattr.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary attr/xattr.h"])]
+ )
+ AC_CHECK_LIB(
+ [attr],
+ [fgetxattr],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
+ )
+ CFLAGS+=" -DXATTR"
+ ],
+ [
+ CFLAGS+=" -UXATTR"
+ ]
+ )
+ ],
+ [
+ CFLAGS+=" -DXATTR"
+ ]
+)
+
# Checks for programs.
+AC_PROG_AWK
AC_PROG_CC
-AC_CHECK_FUNCS([memset strerror])
-AC_FUNC_MMAP
# Checks for libraries.
-AC_CHECK_LIB([elf], [elf_begin])
-AC_CHECK_LIB([attr], [fgetxattr])
+AC_CHECK_LIB([elf], [elf_begin],[],[AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])])
# Checks for header files.
-AC_CHECK_HEADERS([attr/xattr.h errno.h error.h fcntl.h gelf.h libgen.h stdio.h \
- stdlib.h string.h sys/mman.h sys/stat.h sys/types.h unistd.h
-],
-[], [AC_MSG_ERROR(["Missing necessary header"])])
+AC_CHECK_HEADERS(
+ [errno.h error.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
+ sys/mman.h sys/stat.h sys/types.h unistd.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary header"])]
+)
# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
+AC_FUNC_FORK
+AC_FUNC_MMAP
+AC_CHECK_FUNCS([memset strerror])
AC_CONFIG_FILES([
Makefile
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-11-27 1:12 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-11-27 1:12 UTC (permalink / raw
To: gentoo-commits
commit: f1bbdf670aa74d0b42273856e828cac9f5fc3c79
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 27 01:12:18 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Nov 27 01:12:18 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=f1bbdf67
Update ChangeLog and TODO
---
ChangeLog | 8 ++++++++
TODO | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5c3e57a..6ccf866 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,12 @@
+2011-11-26
+
+ * src/paxctl-ng.c: made verbosity more consistant
+ * src/paxctl-ng.c: build with/without xattr support
+ * scripts/{setup.py,paxmodule.c}: build with/without xattr support
+ * configure.ac: added --enable-xattr switch
+ * scripts/revdep-pax: add -e switch to only mark (-m) or to
+ only report on (-v) binaries that are in the shell's PATH
* tests/pxtpax: compare pax flags on binary and process
* fix-gnustack and paxctl-ng: fix exit code on success
* paxctl-ng: add file globbing
diff --git a/TODO b/TODO
index e69de29..ae0b570 100644
--- a/TODO
+++ b/TODO
@@ -0,0 +1,3 @@
+
+ src/paxctl-ng.c: add verbose error reporting for xattr (like for set/get phdr)
+
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-11-27 1:33 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-11-27 1:33 UTC (permalink / raw
To: gentoo-commits
commit: 21a91a99769ffdfa3483ba791ff50289caa823fd
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 27 01:33:11 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Nov 27 01:33:11 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=21a91a99
configure.ac: bump to version 0.5
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 46ca874..9cf4143 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
-AC_INIT([elfix], [0.4], [http://bugs.gentoo.org/])
+AC_INIT([elfix], [0.5], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/fix-gnustack.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-12-04 21:47 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-12-04 21:47 UTC (permalink / raw
To: gentoo-commits
commit: 5e7a7e2865311389198e1ccdc8703a61b1ddf964
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 4 21:47:17 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Dec 4 21:47:17 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=5e7a7e28
ChangeLog: updated
---
ChangeLog | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6ccf866..ec1904d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
+2011-12-04
+
+ * src/paxctl-ng.c: add exception handling when trying to pax.setflags
+
2011-11-26
* src/paxctl-ng.c: made verbosity more consistant
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-12-04 22:00 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-12-04 22:00 UTC (permalink / raw
To: gentoo-commits
commit: 04aa87109e687cd1e3666150c01327f8008877ce
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 4 21:59:21 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Dec 4 21:59:21 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=04aa8710
ChangeLog: forgot to add an entry
---
ChangeLog | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ec1904d..9e9c6d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2011-12-04
* src/paxctl-ng.c: add exception handling when trying to pax.setflags
+ * src/paxctl-ng.c: make -e (report/mark only executables) filter output
+ from either verbose or non-verbose output
2011-11-26
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2011-12-29 0:53 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2011-12-29 0:53 UTC (permalink / raw
To: gentoo-commits
commit: 5b9bf47b7da54c8f826bde801898b7ef7ab64a0d
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 29 00:53:22 2011 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 00:53:22 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=5b9bf47b
ChangeLog: updated
---
ChangeLog | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9e9c6d0..9fc1b5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-12-28
+
+ * misc/test-revdep-pax: added a test package for revdep-pax
+ * scripts/revdep-pax: added an allyes option
+ * scripts/revdep-pax: employ a more sophisticated logic for markings
+ when binary and library flags conflict
+ * scripts/revdep-pax: die elegantly if binary/library is not found
2011-12-04
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-20 15:20 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-20 15:20 UTC (permalink / raw
To: gentoo-commits
commit: bcb7968805bde0b6e7ed1654901195790a49668d
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 20 15:20:34 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Jul 20 15:20:34 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=bcb79688
Add .gitignore
---
.gitignore | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5321107
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,20 @@
+Makefile
+Makefile.in
+aclocal.m4
+autom4te.cache
+config.h
+config.h.in
+config.log
+config.status
+configure
+depcomp
+install-sh
+missing
+stamp-h1
+#
+.deps
+*.o
+fix-gnustack
+paxctl-ng
+bad-gnustack
+daemon
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-21 19:04 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-21 19:04 UTC (permalink / raw
To: gentoo-commits
commit: 3a0547b9b8d038a1c909a7a99f1780305125cb1e
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 21 19:04:44 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jul 21 19:04:44 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=3a0547b9
ChangeLog: updated
---
ChangeLog | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9fc1b5c..52c8749 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2012-07-21
+
+ * scripts/revdep-pax: add option to only print out executables,
+ not libraries
+ * scripts/revdep-pax: allow for a more complex logic in migrating
+ flags from source to target. When the source says nothing about a
+ flag, the target's options survive
+ * misc/test-revdep-pax: add revdep-pax test code
+ * src/paxctl-ng.c: remove RANDEXEC completely. Its completely missing
+ from XT_PAX so remove it from PT_APX as well.
+ * src/paxctl-ng.c: switch to string implementation of XT_PAX following
+ upstreams implementation in the kernel
+ * scripts/paxmodule.c: switch to string implementation of XT_PAX
+ * scripts/pypaxctl: a (too?) simple front end to test python module
+ * src/paxctl-ng.c, scripts/paxmodule.c: create xattr user.pax.flags when
+ trying to set XT_PAX flags when the field doesn't already exit
+
2011-12-28
* misc/test-revdep-pax: added a test package for revdep-pax
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-24 12:38 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-24 12:38 UTC (permalink / raw
To: gentoo-commits
commit: 9d8a6ebd3360b4752bf97ad1591a1b6382ab02c8
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 24 12:38:22 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Jul 24 12:38:22 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=9d8a6ebd
ChangeLog, THANKS: updated
---
ChangeLog | 18 ++++++++++++++++++
THANKS | 3 +++
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 52c8749..b9092e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2012-07-24
+
+ * scripts/{revdep-pax,paxmodule.c,pypaxctl}: python2/3 compat
+ * src/{fix-gnustack.c,paxctl-ng.c}, scripts/paxmodule.c:
+ switch from ELF_C_RDWR_MMAP to ELF_C_RDWR to link again libelf
+ for uclibc systems
+ * scripts/revdep-pax: remove bare exception handling, catch only
+ exceptions which are well understood, eg pax.error
+ * scripts/revdep-pax: switch from subprocess.check_output to
+ subprocess.Popen for better behavior
+ * scripts/revdep-pax: add sanity checks for missing OBJECT, SONAME,
+ and LIBRARY passed on the command line
+ * scripts/revdep-pax: simplify map reversal using setdefault to
+ avoid a double loop
+
+ Thanks to Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ and Brian Dolbec <dolsen@gentoo.org>
+
2012-07-21
* scripts/revdep-pax: add option to only print out executables,
diff --git a/THANKS b/THANKS
index fc35d4b..2a7ce51 100644
--- a/THANKS
+++ b/THANKS
@@ -1,3 +1,6 @@
Kudos to
* pipacs <pageexec@freemail.hu>
+ * Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ * Brian Dolbec <dolsen@gentoo.org>
+
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-24 12:53 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-24 12:53 UTC (permalink / raw
To: gentoo-commits
commit: a79a972494b545458887b2c55154bcd2d38ac2b0
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 24 12:53:46 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Jul 24 12:53:46 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=a79a9724
ChangeLog: move thank yous to THANKS
---
ChangeLog | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b9092e4..ff41deb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,9 +13,6 @@
* scripts/revdep-pax: simplify map reversal using setdefault to
avoid a double loop
- Thanks to Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
- and Brian Dolbec <dolsen@gentoo.org>
-
2012-07-21
* scripts/revdep-pax: add option to only print out executables,
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-27 22:37 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-27 22:37 UTC (permalink / raw
To: gentoo-commits
commit: 5e34fed9bf18501b5c03a8e33ce87a184c03a38f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 27 22:37:02 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Jul 27 22:37:02 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=5e34fed9
ChangeLog: updated
---
ChangeLog | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ff41deb..ad6a9bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-07-27
+
+ * switch from yasm to gcc for assembler for arches other than
+ x86 and amd64
+ * opening an ELF_C_RDWR does not work for either libelf or
+ elfutils, so revert to ELF_C_RDWR_MMAP. This does, however,
+ break linking against libelf
+
2012-07-24
* scripts/{revdep-pax,paxmodule.c,pypaxctl}: python2/3 compat
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-28 12:46 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-28 12:46 UTC (permalink / raw
To: gentoo-commits
commit: aa85dba6d084cb0d28703a9e77766f9d7376958b
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 28 12:46:44 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jul 28 12:46:44 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=aa85dba6
configure.ac: remove unnecessary check for yasm
---
configure.ac | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index f97c3d7..b4f9c0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,17 +14,9 @@ AC_ARG_ENABLE(
[--enable-tests],
[perform tests]
),
- [
- AS_IF(
- [test "x$enable_tests" = "xyes"],
- [
- AC_CHECK_PROG([has_yasm],[yasm],["yes"],["no"])
- AS_IF([test "x$has_yasm" = "xno"],AC_MSG_ERROR(["Missing yasm assembler"]))
- ]
- )
- ]
+ [test "x$enable_tests" = "xyes"]
)
-AM_CONDITIONAL([TEST],[test "x$has_yasm" = "xyes"])
+AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
AC_ARG_ENABLE(
[xattr],
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-07-29 15:18 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-07-29 15:18 UTC (permalink / raw
To: gentoo-commits
commit: 72eb1fd9ec3fe8d74f238700076ae14299fa0dd8
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 29 15:17:57 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jul 29 15:17:57 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=72eb1fd9
ChangeLog: updated
---
ChangeLog | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ad6a9bb..8e3b218 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-29
+
+ * remove unnecessary check for yasm in configure.ac
+ * make tests/gnustack machine independant by generating
+ native assembly using gcc
+
2012-07-27
* switch from yasm to gcc for assembler for arches other than
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-11-10 21:01 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-11-10 21:01 UTC (permalink / raw
To: gentoo-commits
commit: 49b6313fcd6fc6e0b9451f2d2bc9a5dcd5a1fe8f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 10 21:01:35 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Nov 10 21:01:35 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=49b6313f
Update ChangeLog and TODO
---
ChangeLog | 6 ++++++
TODO | 3 ++-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8e3b218..0f2533c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-11-10
+
+ * Fixes a typo in revdep-pax script and documentation
+ * Make both PT_PAX and xattr PAX optionally enabled/disabled in
+ configure.ac and propagated to src/paxctl-ng.c and script/paxmodule.c
+
2012-07-29
* remove unnecessary check for yasm in configure.ac
diff --git a/TODO b/TODO
index ae0b570..d3d6c0e 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,4 @@
- src/paxctl-ng.c: add verbose error reporting for xattr (like for set/get phdr)
+ * src/paxctl-ng.c: add verbose error reporting for xattr (like for set/get phdr)
+ * make sure the exit code are correct if you can't set either PT_PAX or xattr
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-11-10 21:02 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-11-10 21:02 UTC (permalink / raw
To: gentoo-commits
commit: e118b78a3ac3c07b60cc24cf93272c2e15aa670f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 10 21:02:31 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Nov 10 21:02:31 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=e118b78a
configure.ac: bump to version 0.6
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3e22d45..f1831d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
-AC_INIT([elfix], [0.5], [http://bugs.gentoo.org/])
+AC_INIT([elfix], [0.6], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/fix-gnustack.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-11-10 22:26 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-11-10 22:26 UTC (permalink / raw
To: gentoo-commits
commit: 317db2777f0531b1bbcfd1b1f3be53429d87686b
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 10 22:25:44 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Nov 10 22:25:44 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=317db277
configure.ac: fix error message for missing gelf.h define's
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index f1831d3..5494141 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,7 @@ AS_IF(
AC_CHECK_DECLS(
[PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
[],
- [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])],
+ [AC_MSG_ERROR(["Missing necessary define's in gelf.h"])],
[[#include <gelf.h>]]
)
CFLAGS+=" -DPTPAX"
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-11-10 23:38 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-11-10 23:38 UTC (permalink / raw
To: gentoo-commits
commit: 83520307969cc118b41f155bed6caebbea87ee6f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 10 23:37:53 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Nov 10 23:37:53 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=83520307
ChangeLog: updated
---
ChangeLog | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0f2533c..5b19976 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,14 @@
2012-11-10
- * Fixes a typo in revdep-pax script and documentation
- * Make both PT_PAX and xattr PAX optionally enabled/disabled in
+ * fix a typo in revdep-pax script and documentation
+ * make both PT_PAX and xattr PAX optionally enabled/disabled in
configure.ac and propagated to src/paxctl-ng.c and script/paxmodule.c
+ * add -L -l which limits markings to only PT_PAX or XT_PAX when
+ both are possible
+ * add -d which deletes the XT_PAX xattr field
+ * silently ignore non-applicable command line flags so there is
+ more flexibility in scripting
+ * add proper exit code handling
2012-07-29
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-12-12 18:47 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-12-12 18:47 UTC (permalink / raw
To: gentoo-commits
commit: 589fdb91985c703cc7d34ab9e098bac3dda96c03
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 12 18:45:29 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Dec 12 18:45:29 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=589fdb91
configure.ac: disable silent rules
X-Gentoo-Bug: 445600
X-Gentoo-Bug-URL: https://bugs.gentoo.org/445600
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5494141..43c74e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_INIT([elfix], [0.6], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/fix-gnustack.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign])
-AM_SILENT_RULES([yes])
+AM_SILENT_RULES([no])
AC_ARG_ENABLE(
[tests],
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-12-16 21:31 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-12-16 21:31 UTC (permalink / raw
To: gentoo-commits
commit: 06e3c246a11f2efeff4b6fa227e45114b81a4245
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 16 21:31:35 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Dec 16 21:31:35 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=06e3c246
configure.ac: update to version 0.7
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 006b461..67b493c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@
#
AC_PREREQ([2.68])
-AC_INIT([elfix], [0.6], [http://bugs.gentoo.org/])
+AC_INIT([elfix], [0.7], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/fix-gnustack.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-12-27 3:16 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-12-27 3:16 UTC (permalink / raw
To: gentoo-commits
commit: 6f86ce7f9b7cab1027f17edec3e98e7582a660b4
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 27 03:15:45 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Dec 27 03:15:45 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=6f86ce7f
ChangeLog: updated
---
ChangeLog | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 67404d5..e2778b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-12-26
+
+ * Fix the flag logic on paxctl-ng and clean up documenation
+ * Encapsulate all forward/reverse linkings in class LinkMap in link_map.py
+ * Use the portage module instead of reading /var/db/pkg for link info
+ * Use NEEDED.ELF.2 instead of deprecated NEEDED for link info
+
2012-12-21
* Change the name XT_PAX to XATTR_PAX to follow upstream everywhere
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-12-29 1:36 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-12-29 1:36 UTC (permalink / raw
To: gentoo-commits
commit: c72e33abc18e9c59d2d1c4598fc1f99cfa26ef1d
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 29 01:36:40 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Dec 29 01:36:40 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=c72e33ab
ChangeLog: updated
---
ChangeLog | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e2778b9..d319788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-28
+
+ * src/paxctl-ng.c: -L/-l alone report if PT_PAX/XATTR_PAX is supported.
+ * Use NEEDED.ELF.2 for migrate-pax
+
2012-12-26
* Fix the flag logic on paxctl-ng and clean up documenation
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2012-12-29 2:36 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2012-12-29 2:36 UTC (permalink / raw
To: gentoo-commits
commit: d00e937f0946d4913dac6f73a0c20c3e96cb61ea
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 29 02:36:11 2012 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Dec 29 02:36:11 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=d00e937f
configure.ac: update to version 0.8
---
ChangeLog | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d319788..dc7b00f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
2012-12-28
* src/paxctl-ng.c: -L/-l alone report if PT_PAX/XATTR_PAX is supported.
- * Use NEEDED.ELF.2 for migrate-pax
+ * Use NEEDED.ELF.2 for revdep-pax and migrate-pax
2012-12-26
diff --git a/configure.ac b/configure.ac
index 67b493c..4fbf6b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@
#
AC_PREREQ([2.68])
-AC_INIT([elfix], [0.7], [http://bugs.gentoo.org/])
+AC_INIT([elfix], [0.8], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/fix-gnustack.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2013-05-21 2:21 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2013-05-21 2:21 UTC (permalink / raw
To: gentoo-commits
commit: a497deb56c60ebc1d60e4c4352e432e107692808
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 02:20:54 2013 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue May 21 02:20:54 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=a497deb5
ChangeLog: updated
---
ChangeLog | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dc7b00f..03ee71e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2013-05-20
+
+ * Bump to automake 1.12
+ * Add check if ELF_C_RDWR_MMAP is declared in libelf.h. This distinguishes
+ elfutils from libelf. The former will not build on uclibc, but the laster
+ does not provide ELF_C_RDWR_MMAP.
+ * Clean up the tests so they work for all combinations of --{en,dis}able-{pt,xt}pax
+ * Add a bash utility which does pax-marking like the eclass. This is for
+ build systems that do pax-marking during the build.
+
2012-12-28
* src/paxctl-ng.c: -L/-l alone report if PT_PAX/XATTR_PAX is supported.
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2013-11-07 14:51 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2013-11-07 14:51 UTC (permalink / raw
To: gentoo-commits
commit: 1642515dd5491c4d493f37aa6f619e211b3e50f2
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 7 14:51:48 2013 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Nov 7 14:51:48 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=1642515d
ChangeLog: updated
---
ChangeLog | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index c6b049f..06c7268 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-26
+
+ * Return EXIT_SUCCESS if user.pax.flags is done after paxctl-ng -d. This
+ addresses https://bugs.gentoo.org/485908
+
2013-05-20
* Bump to automake 1.12
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-06-07 14:18 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-06-07 14:18 UTC (permalink / raw
To: gentoo-commits
commit: 6dfc8511b21f2806ab510fa2c63c45900a8702f0
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 7 14:19:48 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jun 7 14:19:48 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=6dfc8511
Update ChangeLog
---
ChangeLog | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6511d94..8119307 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2014-06-07
+
+ * Switch from error() to errx() in fix-gnustack.c and paxctl-ng.c to
+ make the code portable to musl (and BSD).
+
+2014-05-31
+
+ * Remove check from install-xattr which is messing up portage's install
+ wrapper. See https://bugs.gentoo.org/511984
+
+2014-05-27
+
+ * Added ldd.py, a clone of ldd built on top of pyelftools
+
2014-01-08
* Added install.wrapper.c for https://bugs.gentoo.org/465000
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-06-07 14:20 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-06-07 14:20 UTC (permalink / raw
To: gentoo-commits
commit: af948a41b803123973e262ed27c2ebfc431285e9
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 7 14:19:48 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jun 7 14:21:16 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=af948a41
ChangeLog: updated
---
ChangeLog | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6511d94..8119307 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2014-06-07
+
+ * Switch from error() to errx() in fix-gnustack.c and paxctl-ng.c to
+ make the code portable to musl (and BSD).
+
+2014-05-31
+
+ * Remove check from install-xattr which is messing up portage's install
+ wrapper. See https://bugs.gentoo.org/511984
+
+2014-05-27
+
+ * Added ldd.py, a clone of ldd built on top of pyelftools
+
2014-01-08
* Added install.wrapper.c for https://bugs.gentoo.org/465000
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-07-21 21:05 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-07-21 21:05 UTC (permalink / raw
To: gentoo-commits
commit: c0cdb1df4e6dab9edf6a226b2bb932d4ec264c56
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 21 21:06:13 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Jul 21 21:06:13 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=c0cdb1df
ChangeLog: updated
---
ChangeLog | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 8119307..73fea9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-07-21
+
+ * Correct the behavior of install-xattr for when it is executed in a portage
+ environment. We must chdir to OLDPWD rather than using PWD else we wind up
+ installing into /usr/lib/portage.
+
2014-06-07
* Switch from error() to errx() in fix-gnustack.c and paxctl-ng.c to
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-07-30 16:20 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-07-30 16:20 UTC (permalink / raw
To: gentoo-commits
commit: 234cfbece450e33bfab553ddf212f6f05b7de61b
Author: Maxim Kammerer <mk <AT> dee <DOT> su>
AuthorDate: Wed Jul 30 04:52:08 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 16:14:57 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=234cfbec
configure.ac: Build fix-gnustack conditionally on --enable-ptpax
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 865cbaf..de0cc22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,6 @@ AC_CHECK_HEADERS(
# Checks for DECLs.
AC_CHECK_DECL([ELF_C_RDWR_MMAP],[],[],[[#include <libelf.h>]])
-AM_CONDITIONAL([BUILD_ELF],[test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
@@ -107,6 +106,8 @@ AS_IF(
]
)
+AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
+
AC_ARG_ENABLE(
[xtpax],
AS_HELP_STRING(
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
2014-08-19 14:01 Anthony G. Basile
@ 2014-07-30 16:32 ` Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-07-30 16:32 UTC (permalink / raw
To: gentoo-commits
commit: 414cfa1770a8cfc46308149deecf9c0eef60a5bb
Author: Maxim Kammerer <mk <AT> dee <DOT> su>
AuthorDate: Wed Jul 30 04:52:08 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 16:32:27 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=414cfa17
configure.ac: Build fix-gnustack conditionally on --enable-ptpax
X-Gentoo-Bug: 518524
X-Gentoo-Bug-URL: https://bugs.gentoo.org/518524
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 865cbaf..de0cc22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,6 @@ AC_CHECK_HEADERS(
# Checks for DECLs.
AC_CHECK_DECL([ELF_C_RDWR_MMAP],[],[],[[#include <libelf.h>]])
-AM_CONDITIONAL([BUILD_ELF],[test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
@@ -107,6 +106,8 @@ AS_IF(
]
)
+AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
+
AC_ARG_ENABLE(
[xtpax],
AS_HELP_STRING(
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
2014-08-19 14:01 Anthony G. Basile
@ 2014-07-30 16:40 ` Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-07-30 16:40 UTC (permalink / raw
To: gentoo-commits
commit: 76456b12895c804e825a6ac4f62e8dd0377b254d
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 16:41:54 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 16:41:54 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=76456b12
ChangeLog, TODO: updated
---
ChangeLog | 7 +++++++
TODO | 1 +
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 8119307..3a66e5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-07-30
+
+ * Build fix-gnustack conditionally on --enable-ptpax to avoid dependancy
+ on elfutils or libelf when it needed for fix-gnustack but not paxctl-ng.
+ The future solution will be break out fix-gnustack.
+ See: https://bugs.gentoo.org/518524
+
2014-06-07
* Switch from error() to errx() in fix-gnustack.c and paxctl-ng.c to
diff --git a/TODO b/TODO
index 3a16c66..a61aa2c 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,5 @@
* src/paxctl-ng.c, scripts/paxmodule.c: reduce the shared code to a convenience library
* misc/revdep-pax-np: (non-gentoo) use $PATH to find all exe's and ldd for libraries
+ * Break out fix-gnustack into its own package. See: https://bugs.gentoo.org/518524
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-07-30 19:39 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
0 siblings, 1 reply; 63+ messages in thread
From: Anthony G. Basile @ 2014-07-30 19:39 UTC (permalink / raw
To: gentoo-commits
commit: dfafe78c08ac22bc87c42e64f06a92b55830a689
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 18:55:26 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 18:55:26 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=dfafe78c
configure.ac: replace tabs with 4 spaces
---
configure.ac | 146 +++++++++++++++++++++++++++++------------------------------
1 file changed, 73 insertions(+), 73 deletions(-)
diff --git a/configure.ac b/configure.ac
index de0cc22..2b66eae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,12 +28,12 @@ LT_INIT([dlopen])
AC_CONFIG_MACRO_DIR([m4])
AC_ARG_ENABLE(
- [tests],
- AS_HELP_STRING(
- [--enable-tests],
- [perform tests]
- ),
- [test "x$enable_tests" = "xyes"]
+ [tests],
+ AS_HELP_STRING(
+ [--enable-tests],
+ [perform tests]
+ ),
+ [test "x$enable_tests" = "xyes"]
)
AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
@@ -44,10 +44,10 @@ AC_PROG_SED
# Checks for header files.
AC_CHECK_HEADERS(
- [errno.h err.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
- sys/mman.h sys/stat.h sys/types.h unistd.h],
- [],
- [AC_MSG_ERROR(["Missing necessary header"])]
+ [errno.h err.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
+ sys/mman.h sys/stat.h sys/types.h unistd.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary header"])]
)
# Checks for DECLs.
@@ -68,92 +68,92 @@ AC_CHECK_FUNCS([memset strerror])
# Note: this is always needed for fix-gnustack
# and for paxctl-ng only with --enable-ptpax
AC_CHECK_LIB(
- [elf],
- [elf_begin],
- [],
- [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+ [elf],
+ [elf_begin],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
)
AC_ARG_ENABLE(
- [ptpax],
- AS_HELP_STRING(
- [--enable-ptpax],
- [enable support for pax markings in PT_PAX ELF phdr]
- )
+ [ptpax],
+ AS_HELP_STRING(
+ [--enable-ptpax],
+ [enable support for pax markings in PT_PAX ELF phdr]
+ )
)
AS_IF(
- [test "x$enable_ptpax" != "xno"],
- [
- AS_IF(
- [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
- [
- AC_CHECK_DECLS(
- [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
- [],
- [
- CFLAGS+=" -DNEED_PAX_DECLS"
- ],
- [[#include <gelf.h>]]
- )
- CFLAGS+=" -DPTPAX"
- ],
- [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
- )
- ],
- [
- CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
- ]
+ [test "x$enable_ptpax" != "xno"],
+ [
+ AS_IF(
+ [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
+ [
+ AC_CHECK_DECLS(
+ [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
+ [],
+ [
+ CFLAGS+=" -DNEED_PAX_DECLS"
+ ],
+ [[#include <gelf.h>]]
+ )
+ CFLAGS+=" -DPTPAX"
+ ],
+ [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
+ )
+ ],
+ [
+ CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
+ ]
)
AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
AC_ARG_ENABLE(
- [xtpax],
- AS_HELP_STRING(
- [--enable-xtpax],
- [enable support for pax markings in xattrs]
- )
+ [xtpax],
+ AS_HELP_STRING(
+ [--enable-xtpax],
+ [enable support for pax markings in xattrs]
+ )
)
AS_IF(
- [test "x$enable_xtpax" != "xno"],
- [
- AC_CHECK_HEADERS(
- [attr/xattr.h],
- [],
- [AC_MSG_ERROR(["Missing necessary attr/xattr.h"])]
- )
- AC_CHECK_LIB(
- [attr],
- [fgetxattr],
- [],
- [AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
- )
- CFLAGS+=" -DXTPAX"
- ],
- [
- CFLAGS+=" -UXTPAX"
- ]
+ [test "x$enable_xtpax" != "xno"],
+ [
+ AC_CHECK_HEADERS(
+ [attr/xattr.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary attr/xattr.h"])]
+ )
+ AC_CHECK_LIB(
+ [attr],
+ [fgetxattr],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
+ )
+ CFLAGS+=" -DXTPAX"
+ ],
+ [
+ CFLAGS+=" -UXTPAX"
+ ]
)
if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
- AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
+ AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
fi
AM_CONDITIONAL([DUALTEST],[test "x$enable_ptpax" = "xyes" -a "x$enable_xtpax" = "xyes"])
# Ready to configure our files
AC_CONFIG_FILES([
- Makefile
- src/Makefile
- scripts/Makefile
- doc/Makefile
- tests/Makefile
- tests/gnustack/Makefile
- tests/pxtpax/Makefile
- tests/paxmodule/Makefile
- tests/revdeppaxtest/Makefile
+ Makefile
+ src/Makefile
+ scripts/Makefile
+ doc/Makefile
+ tests/Makefile
+ tests/gnustack/Makefile
+ tests/pxtpax/Makefile
+ tests/paxmodule/Makefile
+ tests/revdeppaxtest/Makefile
])
AC_OUTPUT
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-07-30 22:36 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
0 siblings, 1 reply; 63+ messages in thread
From: Anthony G. Basile @ 2014-07-30 22:36 UTC (permalink / raw
To: gentoo-commits
commit: 1bbd73eb9f765d6ad5ed257f8520877bfd58edfe
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 22:37:34 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 22:37:34 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=1bbd73eb
configure.ac: cleanup after moving fix-gnustack
---
configure.ac | 66 ++++++++++++++++++++++++++----------------------------------
1 file changed, 28 insertions(+), 38 deletions(-)
diff --git a/configure.ac b/configure.ac
index 179eed5..aec42a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-AC_PREREQ([2.68])
+AC_PREREQ([2.69])
AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/paxctl-ng.c])
AC_CONFIG_HEADERS([config.h])
@@ -27,16 +27,6 @@ LT_PREREQ([2.4])
LT_INIT([dlopen])
AC_CONFIG_MACRO_DIR([m4])
-AC_ARG_ENABLE(
- [tests],
- AS_HELP_STRING(
- [--enable-tests],
- [perform tests]
- ),
- [test "x$enable_tests" = "xyes"]
-)
-AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
-
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
@@ -50,9 +40,6 @@ AC_CHECK_HEADERS(
[AC_MSG_ERROR(["Missing necessary header"])]
)
-# Checks for DECLs.
-AC_CHECK_DECL([ELF_C_RDWR_MMAP],[],[],[[#include <libelf.h>]])
-
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
@@ -65,14 +52,15 @@ AC_FUNC_FORK
AC_FUNC_MMAP
AC_CHECK_FUNCS([memset strerror])
-# Note: this is always needed for fix-gnustack
-# and for paxctl-ng only with --enable-ptpax
-AC_CHECK_LIB(
- [elf],
- [elf_begin],
- [],
- [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+AC_ARG_ENABLE(
+ [tests],
+ AS_HELP_STRING(
+ [--enable-tests],
+ [perform tests]
+ ),
+ [test "x$enable_tests" = "xyes"]
)
+AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
AC_ARG_ENABLE(
[ptpax],
@@ -85,29 +73,31 @@ AC_ARG_ENABLE(
AS_IF(
[test "x$enable_ptpax" != "xno"],
[
- AS_IF(
- [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
- [
- AC_CHECK_DECLS(
- [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
- [],
- [
- CFLAGS+=" -DNEED_PAX_DECLS"
- ],
- [[#include <gelf.h>]]
- )
- CFLAGS+=" -DPTPAX"
- ],
- [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
+ AC_CHECK_LIB(
+ [elf],
+ [elf_begin],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+ )
+ AC_CHECK_DECL(
+ [ELF_C_RDWR_MMAP],
+ [],
+ [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf.h"])],
+ [[#include <libelf.h>]]
)
+ AC_CHECK_DECLS(
+ [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
+ [],
+ [CFLAGS+=" -DNEED_PAX_DECLS"],
+ [[#include <gelf.h>]]
+ )
+ CFLAGS+=" -DPTPAX"
],
[
CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
]
)
-AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
-
AC_ARG_ENABLE(
[xtpax],
AS_HELP_STRING(
@@ -137,7 +127,7 @@ AS_IF(
]
)
-if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
+if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
fi
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:40 ` Anthony G. Basile
0 siblings, 1 reply; 63+ messages in thread
From: Anthony G. Basile @ 2014-08-19 14:01 UTC (permalink / raw
To: gentoo-commits
commit: 76456b12895c804e825a6ac4f62e8dd0377b254d
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 16:41:54 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 16:41:54 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=76456b12
ChangeLog, TODO: updated
---
ChangeLog | 7 +++++++
TODO | 1 +
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 8119307..3a66e5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-07-30
+
+ * Build fix-gnustack conditionally on --enable-ptpax to avoid dependancy
+ on elfutils or libelf when it needed for fix-gnustack but not paxctl-ng.
+ The future solution will be break out fix-gnustack.
+ See: https://bugs.gentoo.org/518524
+
2014-06-07
* Switch from error() to errx() in fix-gnustack.c and paxctl-ng.c to
diff --git a/TODO b/TODO
index 3a16c66..a61aa2c 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,5 @@
* src/paxctl-ng.c, scripts/paxmodule.c: reduce the shared code to a convenience library
* misc/revdep-pax-np: (non-gentoo) use $PATH to find all exe's and ldd for libraries
+ * Break out fix-gnustack into its own package. See: https://bugs.gentoo.org/518524
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:32 ` Anthony G. Basile
0 siblings, 1 reply; 63+ messages in thread
From: Anthony G. Basile @ 2014-08-19 14:01 UTC (permalink / raw
To: gentoo-commits
commit: 414cfa1770a8cfc46308149deecf9c0eef60a5bb
Author: Maxim Kammerer <mk <AT> dee <DOT> su>
AuthorDate: Wed Jul 30 04:52:08 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 16:32:27 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=414cfa17
configure.ac: Build fix-gnustack conditionally on --enable-ptpax
X-Gentoo-Bug: 518524
X-Gentoo-Bug-URL: https://bugs.gentoo.org/518524
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 865cbaf..de0cc22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,6 @@ AC_CHECK_HEADERS(
# Checks for DECLs.
AC_CHECK_DECL([ELF_C_RDWR_MMAP],[],[],[[#include <libelf.h>]])
-AM_CONDITIONAL([BUILD_ELF],[test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
@@ -107,6 +106,8 @@ AS_IF(
]
)
+AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
+
AC_ARG_ENABLE(
[xtpax],
AS_HELP_STRING(
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
2014-07-30 19:39 Anthony G. Basile
@ 2014-08-19 14:01 ` Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-08-19 14:01 UTC (permalink / raw
To: gentoo-commits
commit: dfafe78c08ac22bc87c42e64f06a92b55830a689
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 18:55:26 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 18:55:26 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=dfafe78c
configure.ac: replace tabs with 4 spaces
---
configure.ac | 146 +++++++++++++++++++++++++++++------------------------------
1 file changed, 73 insertions(+), 73 deletions(-)
diff --git a/configure.ac b/configure.ac
index de0cc22..2b66eae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,12 +28,12 @@ LT_INIT([dlopen])
AC_CONFIG_MACRO_DIR([m4])
AC_ARG_ENABLE(
- [tests],
- AS_HELP_STRING(
- [--enable-tests],
- [perform tests]
- ),
- [test "x$enable_tests" = "xyes"]
+ [tests],
+ AS_HELP_STRING(
+ [--enable-tests],
+ [perform tests]
+ ),
+ [test "x$enable_tests" = "xyes"]
)
AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
@@ -44,10 +44,10 @@ AC_PROG_SED
# Checks for header files.
AC_CHECK_HEADERS(
- [errno.h err.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
- sys/mman.h sys/stat.h sys/types.h unistd.h],
- [],
- [AC_MSG_ERROR(["Missing necessary header"])]
+ [errno.h err.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
+ sys/mman.h sys/stat.h sys/types.h unistd.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary header"])]
)
# Checks for DECLs.
@@ -68,92 +68,92 @@ AC_CHECK_FUNCS([memset strerror])
# Note: this is always needed for fix-gnustack
# and for paxctl-ng only with --enable-ptpax
AC_CHECK_LIB(
- [elf],
- [elf_begin],
- [],
- [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+ [elf],
+ [elf_begin],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
)
AC_ARG_ENABLE(
- [ptpax],
- AS_HELP_STRING(
- [--enable-ptpax],
- [enable support for pax markings in PT_PAX ELF phdr]
- )
+ [ptpax],
+ AS_HELP_STRING(
+ [--enable-ptpax],
+ [enable support for pax markings in PT_PAX ELF phdr]
+ )
)
AS_IF(
- [test "x$enable_ptpax" != "xno"],
- [
- AS_IF(
- [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
- [
- AC_CHECK_DECLS(
- [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
- [],
- [
- CFLAGS+=" -DNEED_PAX_DECLS"
- ],
- [[#include <gelf.h>]]
- )
- CFLAGS+=" -DPTPAX"
- ],
- [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
- )
- ],
- [
- CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
- ]
+ [test "x$enable_ptpax" != "xno"],
+ [
+ AS_IF(
+ [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
+ [
+ AC_CHECK_DECLS(
+ [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
+ [],
+ [
+ CFLAGS+=" -DNEED_PAX_DECLS"
+ ],
+ [[#include <gelf.h>]]
+ )
+ CFLAGS+=" -DPTPAX"
+ ],
+ [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
+ )
+ ],
+ [
+ CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
+ ]
)
AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
AC_ARG_ENABLE(
- [xtpax],
- AS_HELP_STRING(
- [--enable-xtpax],
- [enable support for pax markings in xattrs]
- )
+ [xtpax],
+ AS_HELP_STRING(
+ [--enable-xtpax],
+ [enable support for pax markings in xattrs]
+ )
)
AS_IF(
- [test "x$enable_xtpax" != "xno"],
- [
- AC_CHECK_HEADERS(
- [attr/xattr.h],
- [],
- [AC_MSG_ERROR(["Missing necessary attr/xattr.h"])]
- )
- AC_CHECK_LIB(
- [attr],
- [fgetxattr],
- [],
- [AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
- )
- CFLAGS+=" -DXTPAX"
- ],
- [
- CFLAGS+=" -UXTPAX"
- ]
+ [test "x$enable_xtpax" != "xno"],
+ [
+ AC_CHECK_HEADERS(
+ [attr/xattr.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary attr/xattr.h"])]
+ )
+ AC_CHECK_LIB(
+ [attr],
+ [fgetxattr],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
+ )
+ CFLAGS+=" -DXTPAX"
+ ],
+ [
+ CFLAGS+=" -UXTPAX"
+ ]
)
if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
- AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
+ AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
fi
AM_CONDITIONAL([DUALTEST],[test "x$enable_ptpax" = "xyes" -a "x$enable_xtpax" = "xyes"])
# Ready to configure our files
AC_CONFIG_FILES([
- Makefile
- src/Makefile
- scripts/Makefile
- doc/Makefile
- tests/Makefile
- tests/gnustack/Makefile
- tests/pxtpax/Makefile
- tests/paxmodule/Makefile
- tests/revdeppaxtest/Makefile
+ Makefile
+ src/Makefile
+ scripts/Makefile
+ doc/Makefile
+ tests/Makefile
+ tests/gnustack/Makefile
+ tests/pxtpax/Makefile
+ tests/paxmodule/Makefile
+ tests/revdeppaxtest/Makefile
])
AC_OUTPUT
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
2014-07-30 22:36 Anthony G. Basile
@ 2014-08-19 14:01 ` Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-08-19 14:01 UTC (permalink / raw
To: gentoo-commits
commit: 1bbd73eb9f765d6ad5ed257f8520877bfd58edfe
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 22:37:34 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 22:37:34 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=1bbd73eb
configure.ac: cleanup after moving fix-gnustack
---
configure.ac | 66 ++++++++++++++++++++++++++----------------------------------
1 file changed, 28 insertions(+), 38 deletions(-)
diff --git a/configure.ac b/configure.ac
index 179eed5..aec42a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-AC_PREREQ([2.68])
+AC_PREREQ([2.69])
AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/paxctl-ng.c])
AC_CONFIG_HEADERS([config.h])
@@ -27,16 +27,6 @@ LT_PREREQ([2.4])
LT_INIT([dlopen])
AC_CONFIG_MACRO_DIR([m4])
-AC_ARG_ENABLE(
- [tests],
- AS_HELP_STRING(
- [--enable-tests],
- [perform tests]
- ),
- [test "x$enable_tests" = "xyes"]
-)
-AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
-
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
@@ -50,9 +40,6 @@ AC_CHECK_HEADERS(
[AC_MSG_ERROR(["Missing necessary header"])]
)
-# Checks for DECLs.
-AC_CHECK_DECL([ELF_C_RDWR_MMAP],[],[],[[#include <libelf.h>]])
-
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
@@ -65,14 +52,15 @@ AC_FUNC_FORK
AC_FUNC_MMAP
AC_CHECK_FUNCS([memset strerror])
-# Note: this is always needed for fix-gnustack
-# and for paxctl-ng only with --enable-ptpax
-AC_CHECK_LIB(
- [elf],
- [elf_begin],
- [],
- [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+AC_ARG_ENABLE(
+ [tests],
+ AS_HELP_STRING(
+ [--enable-tests],
+ [perform tests]
+ ),
+ [test "x$enable_tests" = "xyes"]
)
+AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
AC_ARG_ENABLE(
[ptpax],
@@ -85,29 +73,31 @@ AC_ARG_ENABLE(
AS_IF(
[test "x$enable_ptpax" != "xno"],
[
- AS_IF(
- [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
- [
- AC_CHECK_DECLS(
- [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
- [],
- [
- CFLAGS+=" -DNEED_PAX_DECLS"
- ],
- [[#include <gelf.h>]]
- )
- CFLAGS+=" -DPTPAX"
- ],
- [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
+ AC_CHECK_LIB(
+ [elf],
+ [elf_begin],
+ [],
+ [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+ )
+ AC_CHECK_DECL(
+ [ELF_C_RDWR_MMAP],
+ [],
+ [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf.h"])],
+ [[#include <libelf.h>]]
)
+ AC_CHECK_DECLS(
+ [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
+ [],
+ [CFLAGS+=" -DNEED_PAX_DECLS"],
+ [[#include <gelf.h>]]
+ )
+ CFLAGS+=" -DPTPAX"
],
[
CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
]
)
-AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
-
AC_ARG_ENABLE(
[xtpax],
AS_HELP_STRING(
@@ -137,7 +127,7 @@ AS_IF(
]
)
-if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
+if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
fi
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-10-13 22:19 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-10-13 22:19 UTC (permalink / raw
To: gentoo-commits
commit: 5fe63d5f5fd4902b777533b6557658cbe075adda
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 13 22:19:53 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Oct 13 22:19:53 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=5fe63d5f
configure.ac: remove bash-isms
X-Gentoo-Bug: 525240
X-Gentoo-Bug-URL: https://bugs.gentoo.org/525240
---
configure.ac | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index aec42a4..0c3c608 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,13 +88,13 @@ AS_IF(
AC_CHECK_DECLS(
[PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
[],
- [CFLAGS+=" -DNEED_PAX_DECLS"],
+ [CFLAGS="${CFLAGS} -DNEED_PAX_DECLS"],
[[#include <gelf.h>]]
)
- CFLAGS+=" -DPTPAX"
+ CFLAGS="${CFLAGS} -DPTPAX"
],
[
- CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
+ CFLAGS="${CFLAGS} -UPTPAX -DNEED_PAX_DECLS"
]
)
@@ -120,10 +120,10 @@ AS_IF(
[],
[AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
)
- CFLAGS+=" -DXTPAX"
+ CFLAGS="${CFLAGS} -DXTPAX"
],
[
- CFLAGS+=" -UXTPAX"
+ CFLAGS="${CFLAGS} -UXTPAX"
]
)
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2014-11-03 12:23 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2014-11-03 12:23 UTC (permalink / raw
To: gentoo-commits
commit: 40ebb28e7c84cbc52b9044b35915094358beb622
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 3 12:24:50 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Nov 3 12:24:50 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=40ebb28e
ChangeLog: updated
---
ChangeLog | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 3a66e5f..f64e57a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+
+2014-10-03
+
+ * scripts/paxmark.sh: backport improvements from pax-utils.eclass
+ * configure.ac: remove bash-isms
+ See: https://bugs.gentoo.org/525240
+
2014-07-30
* Build fix-gnustack conditionally on --enable-ptpax to avoid dependancy
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2015-10-24 18:32 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2015-10-24 18:32 UTC (permalink / raw
To: gentoo-commits
commit: 4231891b2363f9028252e574cf5c53ac9547954f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 24 18:36:56 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Oct 24 18:36:56 2015 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=4231891b
configure.ac: check for <gelf.h> only if ptpax is enabled.
Reported-by: Jory Pratt <anarchy <AT> gentoo.org>
configure.ac | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 0c3c608..777c226 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ AC_PROG_SED
# Checks for header files.
AC_CHECK_HEADERS(
- [errno.h err.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
+ [errno.h err.h fcntl.h libgen.h stdio.h stdlib.h string.h \
sys/mman.h sys/stat.h sys/types.h unistd.h],
[],
[AC_MSG_ERROR(["Missing necessary header"])]
@@ -73,6 +73,11 @@ AC_ARG_ENABLE(
AS_IF(
[test "x$enable_ptpax" != "xno"],
[
+ AC_CHECK_HEADERS(
+ [gelf.h],
+ [],
+ [AC_MSG_ERROR(["Missing necessary gelf.h"])]
+ )
AC_CHECK_LIB(
[elf],
[elf_begin],
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2015-10-27 19:48 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2015-10-27 19:48 UTC (permalink / raw
To: gentoo-commits
commit: b6bf5457f1680baa8945a6ef209a86b8dc919bd9
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 27 19:49:53 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 19:49:53 2015 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=b6bf5457
ChangeLog: updated.
ChangeLog | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6890a34..00c41ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-10-27
+
+ * scripts/paxmark.sh: do not do a bash -l so we get /usr/sbin
+ in our path. Fixes bug #564142. Thanks Alexander Tsoy
+ <alexander@tsoy.me>.
+ * configure.ac: check for <gelf.h> only if ptpax is enabled.
+ Thanks Jory Pratt <anarchy@gentoo.org>.
+
2015-09-03
* scripts/paxmark.sh: make.conf can be a directory
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-13 21:29 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-13 21:29 UTC (permalink / raw
To: gentoo-commits
commit: fdf348993e2f988872fe76209d1b4fc3be33fe56
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 13 21:38:48 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 21:38:48 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=fdf34899
Update .gitignore to exclude autotools' compile script
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index b2500c4..1b74722 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ Makefile
Makefile.in
aclocal.m4
autom4te.cache
+compile
config.guess
config.h
config.h.in
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 7:10 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 7:10 UTC (permalink / raw
To: gentoo-commits
commit: 8a7b4f959b17720dc8a1367075192e98c3459b8f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 07:19:59 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 07:19:59 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=8a7b4f95
Add travis.yml
.travis.yml | 16 ++++++++++++++++
README => README.md | 4 ++++
2 files changed, 20 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..db93fa1
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,16 @@
+language: c
+compiler:
+ - gcc
+ - clang
+before_install:
+ - sudo apt-get update -qq
+ - sudo apt-get install autotools-dev automake autoconf libtool
+script: ./autogen.sh && ./configure && make V=1 distcheck && \
+ cd misc/fix-gnustack && ./autogen.sh && ./configure && make V=1 distcheck && \
+ cd ../install-xattr && make V=1
+notifications:
+ irc:
+ channels:
+ - "irc.freenode.org#gentoo-hardened"
+ on_success: change
+ on_failure: always
diff --git a/README b/README.md
similarity index 92%
rename from README
rename to README.md
index 21ec330..5616a8c 100644
--- a/README
+++ b/README.md
@@ -17,6 +17,7 @@ Directories under misc/ are independant packages from one another and from the
elfix package. They are NOT distributed with elfix when running `make dist` in
the top directory. Each directory supplies its own build system.
* install-xattr - C wrapper to coreutils' install which preserves file system extended attributes.
+ * fix-gnustack - query or clear any ELF GNU_STACK executable flag
Directory pocs/ - Very experimental stuff.
* change-interp - C utility to the dynamic linker, INTERP as reported by `readelf -l`.
@@ -33,3 +34,6 @@ Directory pocs/ - Very experimental stuff.
* revdep-pax-ng - same as revdep-pax but using information obtained from `ldd` and
not VDB information.
+
+## Repoman status
+[![Repoman Status](https://travis-ci.org/gentoo/elfix.png)](https://travis-ci.org/gentoo/elfix)
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 7:12 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 7:12 UTC (permalink / raw
To: gentoo-commits
commit: 5c294cc15e39f6f5148fcddd9d3547f8a41dd84f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 07:21:53 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 07:21:53 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=5c294cc1
README.md: minor correction
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5616a8c..5646e1f 100644
--- a/README.md
+++ b/README.md
@@ -35,5 +35,5 @@ Directory pocs/ - Very experimental stuff.
not VDB information.
-## Repoman status
+## Build Status
[![Repoman Status](https://travis-ci.org/gentoo/elfix.png)](https://travis-ci.org/gentoo/elfix)
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 14:13 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 14:13 UTC (permalink / raw
To: gentoo-commits
commit: 81dd0730ee7b81b5757c77c1164c0296e901d23e
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 14:22:50 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 14:22:50 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=81dd0730
autogen.sh: make travis-ci happy
autogen.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autogen.sh b/autogen.sh
index aec299b..6fdb667 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,9 +1,9 @@
#!/bin/sh
+libtoolize --copy && \
aclocal && \
autoheader && \
autoconf && \
-libtoolize --copy && \
automake --add-missing --copy
cd doc
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 16:28 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 16:28 UTC (permalink / raw
To: gentoo-commits
commit: d2950b10b400faf73b3a865316dabc4577799fa5
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 16:38:09 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 16:38:09 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=d2950b10
configure.ac: use autoconf 2.65 and convert travis.yml script to a list
.travis.yml | 13 ++++++++++---
configure.ac | 5 ++---
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index db93fa1..9fb81f5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,9 +5,16 @@ compiler:
before_install:
- sudo apt-get update -qq
- sudo apt-get install autotools-dev automake autoconf libtool
-script: ./autogen.sh && ./configure && make V=1 distcheck && \
- cd misc/fix-gnustack && ./autogen.sh && ./configure && make V=1 distcheck && \
- cd ../install-xattr && make V=1
+script:
+ - ./autogen.sh
+ - ./configure
+ - make V=1 distcheck
+ - cd misc/fix-gnustack
+ - ./autogen.sh
+ - ./configure
+ - make V=1 distcheck
+ - cd ../install-xattr
+ - make V=1
notifications:
irc:
channels:
diff --git a/configure.ac b/configure.ac
index 777c226..245d2db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,16 +16,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-AC_PREREQ([2.69])
+AC_PREREQ([2.65])
AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/paxctl-ng.c])
AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([1.12 foreign])
+AM_INIT_AUTOMAKE([1.11 foreign])
AM_SILENT_RULES([no])
LT_PREREQ([2.4])
LT_INIT([dlopen])
-AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_AWK
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 17:04 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 17:04 UTC (permalink / raw
To: gentoo-commits
commit: 8b59ddedcfc1c121f614d212a44d7f7ed213d75b
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 17:14:28 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 17:14:28 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=8b59dded
travis.yml: pull in ibattr1-dev
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 8782804..6d15027 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ compiler:
- clang
before_install:
- sudo apt-get update -qq
- - sudo apt-get install autotools-dev automake autoconf libtool libelf-dev
+ - sudo apt-get install libattr1-dev autotools-dev automake autoconf libelf-dev libtool
script:
- ./autogen.sh
- ./configure
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 17:15 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 17:15 UTC (permalink / raw
To: gentoo-commits
commit: 2204bf1c96d4f8d43a487fb78727350fdcd6a7ec
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 17:25:46 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 17:25:46 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=2204bf1c
travis.yml: don't do a distcheck for fix-gnustack
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 6d15027..1d29845 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ script:
- cd misc/fix-gnustack
- ./autogen.sh
- ./configure
- - make V=1 distcheck
+ - make V=1 dist
- cd ../install-xattr
- make V=1
notifications:
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 21:02 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 21:02 UTC (permalink / raw
To: gentoo-commits
commit: 8ec566a32339945a74affd4f3f4d1d853ed9d67b
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 21:12:06 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 21:12:06 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=8ec566a3
configure.ac: use autoconf 2.69
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 245d2db..8bcac75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-AC_PREREQ([2.65])
+AC_PREREQ([2.69])
AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/paxctl-ng.c])
AC_CONFIG_HEADERS([config.h])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-02-28 21:14 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-02-28 21:14 UTC (permalink / raw
To: gentoo-commits
commit: 43b673fcad88f797635947961202d75a917c20bf
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 21:23:48 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 21:23:48 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=43b673fc
configure.ac: use autoconf 2.68
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 245d2db..208d566 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-AC_PREREQ([2.65])
+AC_PREREQ([2.68])
AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/paxctl-ng.c])
AC_CONFIG_HEADERS([config.h])
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2016-04-02 22:11 Anthony G. Basile
0 siblings, 0 replies; 63+ messages in thread
From: Anthony G. Basile @ 2016-04-02 22:11 UTC (permalink / raw
To: gentoo-commits
commit: 05e7bf1215b5ceb5a8583563e085618782bc9af2
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 2 22:18:18 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Apr 2 22:18:18 2016 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=05e7bf12
README.md: update
README.md | 46 ++++++++++++++++++++++------------------------
1 file changed, 22 insertions(+), 24 deletions(-)
diff --git a/README.md b/README.md
index 5646e1f..23eaee7 100644
--- a/README.md
+++ b/README.md
@@ -1,39 +1,37 @@
-
Utilities to modify Elf binaries to work with PaX hardened kernel.
There are several utilities in here, to help you navigate:
Directories src/ scripts/ doc/ test/ are integral parts of the elfix package.
These are distributed as one source tarball with `make dist` run in the top
diretory.
- * paxctl-ng - C utility for doing XT_PAX and/or PT_PAX markings.
- * pypaxctl - python utility for doing XT_PAX and/or PT_PAX markings. Depends on pax.so.
- * migrate-pax - python utility for migrating from XT_PAX flags to PT_PAX. Depends on pax.so.
- * revdep-pax - python utility for mapping ELF libraries to/from the ELF objects that link
- against them and migrating PAX flags between them. Depends on pax.so.
- * paxmark.sh - Bash script that does intelligent pax-marking like the pax-utils.eclass.
- * paxmodule.c - C code for python module pax.so
+* paxctl-ng - C utility for doing XT_PAX and/or PT_PAX markings.
+* pypaxctl - python utility for doing XT_PAX and/or PT_PAX markings. Depends on pax.so.
+* migrate-pax - python utility for migrating from XT_PAX flags to PT_PAX. Depends on pax.so.
+* revdep-pax - python utility for mapping ELF libraries to/from the ELF objects that link
+ against them and migrating PAX flags between them. Depends on pax.so.
+* paxmark.sh - Bash script that does intelligent pax-marking like the pax-utils.eclass.
+* paxmodule.c - C code for python module pax.so
Directories under misc/ are independant packages from one another and from the
elfix package. They are NOT distributed with elfix when running `make dist` in
the top directory. Each directory supplies its own build system.
- * install-xattr - C wrapper to coreutils' install which preserves file system extended attributes.
- * fix-gnustack - query or clear any ELF GNU_STACK executable flag
+* install-xattr - C wrapper to coreutils' install which preserves file system extended attributes.
+* fix-gnustack - query or clear any ELF GNU_STACK executable flag
Directory pocs/ - Very experimental stuff.
- * change-interp - C utility to the dynamic linker, INTERP as reported by `readelf -l`.
- * eclass - a local copy of the pax-utils.eclass
- * elf-manipulate - some dirty utilities to
- * clear-dt-path.c - remove RPATH and RUNPATH
- * parse-elf.c - print out the ELF header, sections headers and program headers.
- * print-sections.c - print out the contents of the section headers
- * remove-ptpax.c - change a PT_PAX_FLAGS phdr to PT_NULL
- * ldd - python script to reproduce ldd's output using pyelftools
- * link-maps - use VDB information to produce a full linkage map of the system
- * mangle-paxflags - printout old EI_PAX flags and PT_PAX flags
- * paxmark-libs - test how PAX flags migrate from libraries and plugins to their consumers
- * revdep-pax-ng - same as revdep-pax but using information obtained from `ldd` and
- not VDB information.
-
+* change-interp - C utility to the dynamic linker, INTERP as reported by `readelf -l`.
+* eclass - a local copy of the pax-utils.eclass
+* elf-manipulate - some dirty utilities to
+* * clear-dt-path.c - remove RPATH and RUNPATH
+* * parse-elf.c - print out the ELF header, sections headers and program headers.
+* * print-sections.c - print out the contents of the section headers
+* * remove-ptpax.c - change a PT_PAX_FLAGS phdr to PT_NULL
+* ldd - python script to reproduce ldd's output using pyelftools
+* link-maps - use VDB information to produce a full linkage map of the system
+* mangle-paxflags - printout old EI_PAX flags and PT_PAX flags
+* paxmark-libs - test how PAX flags migrate from libraries and plugins to their consumers
+* revdep-pax-ng - same as revdep-pax but using information obtained from `ldd` and
+ not VDB information.
## Build Status
[![Repoman Status](https://travis-ci.org/gentoo/elfix.png)](https://travis-ci.org/gentoo/elfix)
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2023-01-10 5:21 Sam James
0 siblings, 0 replies; 63+ messages in thread
From: Sam James @ 2023-01-10 5:21 UTC (permalink / raw
To: gentoo-commits
commit: 32803121acfd62157831f937f560336c1efe0487
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 6 04:48:43 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 10 05:21:39 2023 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=32803121
CI: drop Travis
Obsolete.
Signed-off-by: Sam James <sam <AT> gentoo.org>
.travis.yml | 23 -----------------------
1 file changed, 23 deletions(-)
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 1d29845..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-language: c
-compiler:
- - gcc
- - clang
-before_install:
- - sudo apt-get update -qq
- - sudo apt-get install libattr1-dev autotools-dev automake autoconf libelf-dev libtool
-script:
- - ./autogen.sh
- - ./configure
- - make V=1 distcheck
- - cd misc/fix-gnustack
- - ./autogen.sh
- - ./configure
- - make V=1 dist
- - cd ../install-xattr
- - make V=1
-notifications:
- irc:
- channels:
- - "irc.freenode.org#gentoo-hardened"
- on_success: change
- on_failure: always
^ permalink raw reply related [flat|nested] 63+ messages in thread
* [gentoo-commits] proj/elfix:master commit in: /
@ 2023-01-24 3:18 Sam James
0 siblings, 0 replies; 63+ messages in thread
From: Sam James @ 2023-01-24 3:18 UTC (permalink / raw
To: gentoo-commits
commit: 9260f5d00fd898389224956819ee65f8a376d547
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 03:12:43 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 03:12:43 2023 +0000
URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=9260f5d0
elfix: modernise autotools usage a bit
Signed-off-by: Sam James <sam <AT> gentoo.org>
configure.ac | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 84ef48d..5a036a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,11 +16,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-AC_PREREQ([2.68])
-AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
+AC_PREREQ([2.71])
+AC_INIT([elfix],[0.9],[https://bugs.gentoo.org/])
AC_CONFIG_SRCDIR([src/paxctl-ng.c])
AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([1.11 foreign])
+AC_CONFIG_MACRO_DIRS([m4])
+AM_INIT_AUTOMAKE([1.15 foreign no-dist-gzip dist-xz])
AM_SILENT_RULES([no])
LT_PREREQ([2.4])
^ permalink raw reply related [flat|nested] 63+ messages in thread
end of thread, other threads:[~2023-01-24 3:18 UTC | newest]
Thread overview: 63+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-21 2:21 [gentoo-commits] proj/elfix:master commit in: / Anthony G. Basile
-- strict thread matches above, loose matches on Subject: below --
2023-01-24 3:18 Sam James
2023-01-10 5:21 Sam James
2016-04-02 22:11 Anthony G. Basile
2016-02-28 21:14 Anthony G. Basile
2016-02-28 21:02 Anthony G. Basile
2016-02-28 17:15 Anthony G. Basile
2016-02-28 17:04 Anthony G. Basile
2016-02-28 16:28 Anthony G. Basile
2016-02-28 14:13 Anthony G. Basile
2016-02-28 7:12 Anthony G. Basile
2016-02-28 7:10 Anthony G. Basile
2016-02-13 21:29 Anthony G. Basile
2015-10-27 19:48 Anthony G. Basile
2015-10-24 18:32 Anthony G. Basile
2014-11-03 12:23 Anthony G. Basile
2014-10-13 22:19 Anthony G. Basile
2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:40 ` Anthony G. Basile
2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:32 ` Anthony G. Basile
2014-07-30 22:36 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
2014-07-30 19:39 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
2014-07-30 16:20 Anthony G. Basile
2014-07-21 21:05 Anthony G. Basile
2014-06-07 14:20 Anthony G. Basile
2014-06-07 14:18 Anthony G. Basile
2013-11-07 14:51 Anthony G. Basile
2012-12-29 2:36 Anthony G. Basile
2012-12-29 1:36 Anthony G. Basile
2012-12-27 3:16 Anthony G. Basile
2012-12-16 21:31 Anthony G. Basile
2012-12-12 18:47 Anthony G. Basile
2012-11-10 23:38 Anthony G. Basile
2012-11-10 22:26 Anthony G. Basile
2012-11-10 21:02 Anthony G. Basile
2012-11-10 21:01 Anthony G. Basile
2012-07-29 15:18 Anthony G. Basile
2012-07-28 12:46 Anthony G. Basile
2012-07-27 22:37 Anthony G. Basile
2012-07-24 12:53 Anthony G. Basile
2012-07-24 12:38 Anthony G. Basile
2012-07-21 19:04 Anthony G. Basile
2012-07-20 15:20 Anthony G. Basile
2011-12-29 0:53 Anthony G. Basile
2011-12-04 22:00 Anthony G. Basile
2011-12-04 21:47 Anthony G. Basile
2011-11-27 1:33 Anthony G. Basile
2011-11-27 1:12 Anthony G. Basile
2011-11-26 22:54 Anthony G. Basile
2011-11-15 19:37 Anthony G. Basile
2011-11-03 19:00 Anthony G. Basile
2011-11-02 9:30 Anthony G. Basile
2011-10-23 15:44 Anthony G. Basile
2011-10-23 14:57 Anthony G. Basile
2011-10-17 21:24 Anthony G. Basile
2011-10-12 10:53 Anthony G. Basile
2011-10-08 19:31 Anthony G. Basile
2011-09-18 23:06 Anthony G. Basile
2011-05-05 19:46 Anthony G. Basile
2011-05-04 2:24 Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox