From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RFsrV-0005MU-9u for garchives@archives.gentoo.org; Mon, 17 Oct 2011 19:28:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 306A321C0C2; Mon, 17 Oct 2011 19:28:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CD2D621C0C2 for ; Mon, 17 Oct 2011 19:28:29 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 411AB1B4019 for ; Mon, 17 Oct 2011 19:28:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5F00780042 for ; Mon, 17 Oct 2011 19:28:28 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: Subject: [gentoo-commits] proj/elfix:master commit in: scripts/ X-VCS-Repository: proj/elfix X-VCS-Files: scripts/paxmodule.c scripts/revdep-pax X-VCS-Directories: scripts/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: f1097c9e8fc1624799f7a08c7e510e24903f1f7d Date: Mon, 17 Oct 2011 19:28:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e90a8bf80edc0ad76df0a0f15290dc10 commit: f1097c9e8fc1624799f7a08c7e510e24903f1f7d Author: Anthony G. Basile gentoo org> AuthorDate: Mon Oct 17 19:28:22 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon Oct 17 19:28:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3Df1097c9e scripts/{paxmodule.c,revdep-pax}: add code to set pax flags --- scripts/paxmodule.c | 183 +++++++++++----------------------------------= ------ scripts/revdep-pax | 100 +++++++++++++++++----------- 2 files changed, 101 insertions(+), 182 deletions(-) diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c index eac774a..32c8768 100644 --- a/scripts/paxmodule.c +++ b/scripts/paxmodule.c @@ -1,6 +1,5 @@ #include =20 -#include //remove when you remove printf #include =20 #include @@ -53,14 +52,13 @@ static PyObject * pax_getflags(PyObject *self, PyObject *args) { const char *f_name; - int fd, sts; + int fd; Elf *elf; =20 char pax_buf[BUF_SIZE]; + uint16_t pax_flags; =20 GElf_Ehdr ehdr; - uint16_t ei_flags; - GElf_Phdr phdr; char found_pt_pax; size_t i, phnum; @@ -102,6 +100,8 @@ pax_getflags(PyObject *self, PyObject *args) =20 =20 found_pt_pax =3D 0; + pax_flags =3D 0; + elf_getphdrnum(elf, &phnum); for(i=3D0; i> 8) ; @@ -283,6 +277,7 @@ pax_setflags(PyObject *self, PyObject *args) return NULL; } =20 + elf_getphdrnum(elf, &phnum); for(i=3D0; i