diff options
author | 2012-07-23 07:47:29 -0400 | |
---|---|---|
committer | 2012-07-23 07:47:29 -0400 | |
commit | 184b349113189aee285ff9bcb1ca08235a5c29c6 (patch) | |
tree | 22de43f5ae0e1520055219d3b660b72eb54a204d | |
parent | src/{fix-gnustack.c,paxctl-ng.c}: ELF_C_RDWR_MMAP -> ELF_C_RDWR for uclibc co... (diff) | |
download | elfix-184b349113189aee285ff9bcb1ca08235a5c29c6.tar.gz elfix-184b349113189aee285ff9bcb1ca08235a5c29c6.tar.bz2 elfix-184b349113189aee285ff9bcb1ca08235a5c29c6.zip |
scripts/paxmodule.c: ELF_C_RDWR_MMAP -> ELF_C_RDWR for uclibc compat
-rw-r--r-- | scripts/paxmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c index c3dfc28..4a08522 100644 --- a/scripts/paxmodule.c +++ b/scripts/paxmodule.c @@ -110,7 +110,7 @@ get_pt_flags(int fd) return pt_flags; } - if((elf = elf_begin(fd, ELF_C_READ_MMAP, NULL)) == NULL) + if((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { PyErr_SetString(PaxError, "get_pt_flags: elf_begin() failed"); return pt_flags; @@ -275,7 +275,7 @@ set_pt_flags(int fd, uint16_t pt_flags) return; } - if((elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL)) == NULL) + if((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) { PyErr_SetString(PaxError, "set_pt_flags: elf_begin() failed"); return; |