Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] half-broken xattr pax-marking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sergeev917
n00b
n00b


Joined: 04 Apr 2014
Posts: 19

PostPosted: Sun Jan 03, 2016 9:43 pm    Post subject: [CLOSED] half-broken xattr pax-marking Reply with quote

Hello,
I've recently started experimenting with gentoo-hardened and experienced some troubles with pax-marking which is done by portage. I'm using xtpax (xattr-based) only with ptpax disabled.
The problem is that python2.7 binary is marked correctly (with EMUTRAMP) and python3.5 is not marked at all.

Code:

# paxctl-ng -v $(find /usr/bin -iname "python*" -type f)
/usr/bin/python2.7-config:
   XATTR_PAX : not found

/usr/bin/python3:
   XATTR_PAX : not found

/usr/bin/python2.7:
   XATTR_PAX : -E---

/usr/bin/python3.5m-config:
   XATTR_PAX : not found

/usr/bin/python:
   XATTR_PAX : not found

/usr/bin/python3.5m:
   XATTR_PAX : not found

/usr/bin/python2:
   XATTR_PAX : not found


The situation is persistent across re-installation of the both packages. Python 2.7.11-r1 is selected as default python interpreter. Also the pax-marking is mentioned on compilation stages for the both packages:
Code:

Skipping: EDRIVE_CANT_DO_THIS = EOPNOTSUPP
Skipping: CDSL_NONE = (INT_MAX-1)
Skipping: CDSL_CURRENT = INT_MAX
 * XATTR_PAX marking -E python with paxctl-ng
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/python-3.5.1-r2

>>> Install python-3.5.1-r2 into /var/tmp/portage/dev-lang/python-3.5.1-r2/image/ category dev-lang


The related make.conf cut:
Code:

FEATURES="xattr webrsync-gpg parallel-fetch metadata-transfer sandbox split-elog collision-protect merge-sync preserve-libs -test"
PAX_MARKINGS="XT"
PYTHON_SINGLE_TARGET="python3_5"
PYTHON_TARGETS="python3_5 python2_7"
USE_PYTHON="3.5 2.7"


sys-apps/portage version is 2.2.26 (stable),
app-portage/portage-utils-0.60
dev-python/pypax-0.9.2 (there is no port to python3.5!)

What am I doing wrong? Or is this a bug in portage?


Last edited by sergeev917 on Sun Jan 03, 2016 10:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Sun Jan 03, 2016 10:31 pm    Post subject: Reply with quote

dev-lang/python-3.5.1-r2 executable looses PaX markings during install
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
sergeev917
n00b
n00b


Joined: 04 Apr 2014
Posts: 19

PostPosted: Sun Jan 03, 2016 10:38 pm    Post subject: Reply with quote

Okay, that is a bug. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum