Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 756898 - sys-libs/pam: USE flag pie does not do anything
Summary: sys-libs/pam: USE flag pie does not do anything
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 18:10 UTC by Hanno Böck
Modified: 2020-12-16 19:21 UTC (History)
2 users (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 Hanno Böck gentoo-dev 2020-11-26 18:10:48 UTC
The pam package has a pie use flag. It seems to have been added lately, I don't believe it serves any purpose.

These days position independent executables and ASLR are pretty much the default Linux and Gentoo's gcc compiler package enforces them. I don't know if it is even possible to create a non-pie Gentoo system any more, and I wouldn't know why anyone would want that.

Compiling sys-libs/pam with USE="-pie" does not lead to any change, the executables it installs are still pie:

file /sbin/faillock
/sbin/faillock: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped

Unless anything I wrote here is terribly wrong, I believe this flag should be removed (as probably should be all other pie flags that are still in the tree).
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-12-16 19:20:50 UTC
(In reply to Hanno Böck from comment #0)
> 
> Unless anything I wrote here is terribly wrong, I believe this flag should
> be removed (as probably should be all other pie flags that are still in the
> tree).

No, you are generally right (with exception for  being added lately, as it has been there for ages, just forgotten).
Comment 2 Larry the Git Cow gentoo-dev 2020-12-16 19:21:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaecab906a408abacc2e7bf07e58cd500afa7731

commit eaecab906a408abacc2e7bf07e58cd500afa7731
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2020-12-16 19:19:32 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2020-12-16 19:19:32 +0000

    sys-libs/pam: enable pie unconditionally
    
    Closes: https://bugs.gentoo.org/756898
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 sys-libs/pam/pam-1.5.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)