Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564142 - sys-apps/elfix - paxmark.sh cannot find paxctl and paxctl-ng
Summary: sys-apps/elfix - paxmark.sh cannot find paxctl and paxctl-ng
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-26 05:53 UTC by Alexander Tsoy
Modified: 2015-10-28 19:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2015-10-26 05:53:37 UTC
paxmark.sh uses login shell as an interpreter:

# head -n1 /usr/sbin/paxmark.sh 
#!/bin/bash -l

Thus it cannot find paxctl and paxctl-ng when called by the non-root user:

# echo -e 'echo $PATH\ntype -p paxctl\ntype -p paxctl-ng' | sudo -u portage /bin/bash -l
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3:/usr/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.9.3

# echo -e 'echo $PATH\ntype -p paxctl\ntype -p paxctl-ng' | sudo -u portage /bin/bash 
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin
/sbin/paxctl
/usr/sbin/paxctl-ng
Comment 1 Anthony Basile gentoo-dev 2015-10-27 20:07:55 UTC
yep this is fixed with acf0ff62 and i'll be pushing out 0.9.2 in a bit.  when it hits the tree can you please test.
Comment 2 Anthony Basile gentoo-dev 2015-10-27 20:17:01 UTC
stabilization request is bug #564286.  close this bug if the path issue is fixed.
Comment 3 Alexander Tsoy 2015-10-27 20:23:52 UTC
Thanks! I'll test is tomorrow.