Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527334 - mail-client/geary needs pax-marking
Summary: mail-client/geary needs pax-marking
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-10-29 13:33 UTC by Alexander Tsoy
Modified: 2019-07-18 23:43 UTC (History)
1 user (show)

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


Attachments
geary-0.8.1.ebuild.patch (geary-0.8.1.ebuild.patch,797 bytes, patch)
2014-10-29 13:33 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2014-10-29 13:33:43 UTC
Created attachment 387734 [details, diff]
geary-0.8.1.ebuild.patch

This is basically the same issue as bug 518458. geary indirectly links with libffi (gcr -> p11-kit[libffi] -> libffi) and depending on USE flags and versions of p11-kit and libffi it should be either pax-marked with E/m or not pax-marked at all.

Errors that appear in log if p11-kit is compiled with USE=libffi:

[92519.290450] PAX: execution attempt in: <anonymous mapping>, 2f85e948000-2f85f149000 2f85e948000
[92519.290461] PAX: terminating task: /usr/bin/geary(geary):10926, uid/euid: 1000/1000, PC: 000002f85f148160, SP: 000003c2f888e448
[92519.290465] PAX: bytes at PC: 49 bb e6 a8 ed 65 f8 02 00 00 49 ba 60 81 14 5f f8 02 00 00 
[92519.290487] PAX: bytes at SP-8: 000003c200000009 000002f86cf701d9 0000000000000000 000002f86cf6ee83 0000000000000000 000002f86d1b3da5 0000000000000000 72cffadb5f6d1700 000003c2f888e4b0 000000429a877e10 000003c2f888e590


Attaching a patch that works for me.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-12-23 22:16:30 UTC
I'm ok for applying this patch but what worries me, just like in seahorse and gnome-shell case is that I don't know of any tool to track down unmarked binaries when USE flag of these libraries change.

It's been discussed in other tickets as well but I cannot see any progress on this. Imho this is just like automagic dependencies if we have no better ways, we should add it to RDEPEND and control things with USE flags.
Comment 2 Anthony Basile gentoo-dev 2015-12-23 22:52:05 UTC
(In reply to Gilles Dartiguelongue from comment #1)
> I'm ok for applying this patch but what worries me, just like in seahorse
> and gnome-shell case is that I don't know of any tool to track down unmarked
> binaries when USE flag of these libraries change.

revdep-pax from the elfix package.

> 
> It's been discussed in other tickets as well but I cannot see any progress
> on this. Imho this is just like automagic dependencies if we have no better
> ways, we should add it to RDEPEND and control things with USE flags.