Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455222 - net-libs/webkit-gtk - add support for XT PaX marking
Summary: net-libs/webkit-gtk - add support for XT PaX marking
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: The Gentoo Linux Hardened Team
URL: http://git.overlays.gentoo.org/gitweb...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 427888
  Show dependency tree
 
Reported: 2013-02-03 02:00 UTC by iGentoo
Modified: 2015-11-15 14:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gir-paxctl-lt-wrapper ( POSIX compliant ) (gir-paxctl-lt-wrapper.patch,1.47 KB, patch)
2013-02-03 02:02 UTC, iGentoo
Details | Diff
webkit-gtk-1.11.4-r300.ebuild.diff (webkit-gtk-1.11.4-r300.ebuild.diff,1.04 KB, patch)
2013-02-03 02:22 UTC, iGentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2013-02-03 02:00:20 UTC
paxctl-ng is swiss army knife for setting PT_PAX and *XATTR_PAX* flags on an ELF binary.
Comment 1 iGentoo 2013-02-03 02:02:51 UTC
Created attachment 337736 [details, diff]
gir-paxctl-lt-wrapper ( POSIX compliant )
Comment 2 iGentoo 2013-02-03 02:22:48 UTC
Created attachment 337738 [details, diff]
webkit-gtk-1.11.4-r300.ebuild.diff
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-02-03 10:25:19 UTC
This should probably be handled at eclass level as well.
Comment 4 Anthony Basile gentoo-dev 2013-02-09 20:41:04 UTC
(In reply to comment #3)
> This should probably be handled at eclass level as well.

It can't.  This is a build time pax marking that is needed.  It has to be updated to fix both possible markings, both PT_PAX and XATTR_PAX.  I didn't test Alphat-PC's patch but it looks like its heading in the right direction.
Comment 5 Anthony Basile gentoo-dev 2013-05-21 14:31:06 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > This should probably be handled at eclass level as well.
> 
> It can't.  This is a build time pax marking that is needed.  It has to be
> updated to fix both possible markings, both PT_PAX and XATTR_PAX.  I didn't
> test Alphat-PC's patch but it looks like its heading in the right direction.

The latest version of elfix-0.8.2 includes a bash script, /usr/sbin/pax-mark, which is a wrapper to paxctl-ng/paxctl/scanelf/setfattr which attemps to set XT or PT pax markings as the eclass does.  The difference is that this can be called from any point in a build process, so anywhere you see paxctl hard coded in ebuilds you should be able to replace it with /usr/sbin/pax-mark.

As I write this, I realize I should probably change the name on the next bump to avoid a name collision with pax-mark from the eclass :(
Comment 6 Pacho Ramos gentoo-dev 2014-02-02 14:02:31 UTC
@hardened, feel free to commit if it works for you
Comment 7 Pacho Ramos gentoo-dev 2015-05-24 09:13:43 UTC
is this still needed with current versions?