Work better with SELinux. We still require allow_execmem.
p_lx_elf.cpp stub/fold_elfppc32.h stub/l_lx_elfppc32.h stub/l_lx_elfppc32.S stub/m_lx_elfppc32.c committer: jreiser <jreiser> 1145666524 +0000
This commit is contained in:
+1
-1
@@ -646,7 +646,7 @@ PackLinuxElf32ppc::generateElfHdr(
|
||||
if (ph.format==UPX_F_LINUX_ELFPPC32) {
|
||||
cprElfHdr2 *const h2 = (cprElfHdr2 *)&elfout;
|
||||
assert(2==get_native16(&h2->ehdr.e_phnum));
|
||||
set_native32(&h2->phdr[0].p_flags, Elf32_Phdr::PF_W | get_native32(&h2->phdr[0].p_flags));
|
||||
set_native32(&h2->phdr[0].p_flags, ~Elf32_Phdr::PF_W & get_native32(&h2->phdr[0].p_flags));
|
||||
memset(&h2->linfo, 0, sizeof(h2->linfo));
|
||||
fo->write(h2, sizeof(*h2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user