Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793797 - sys-auth/pam_u2f: require sys-libs/compiler-rt-sanitizers and sandbox violation during src_install
Summary: sys-auth/pam_u2f: require sys-libs/compiler-rt-sanitizers and sandbox violat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Göktürk Yüksek
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 02:59 UTC by 12101111
Modified: 2021-06-07 08:01 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,40.95 KB, text/x-log)
2021-06-02 03:00 UTC, 12101111
Details
emerge --info (emerge-info.log,9.73 KB, text/x-log)
2021-06-02 03:01 UTC, 12101111
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 12101111 2021-06-02 02:59:07 UTC
1. It use multiple sanitizers
2. makefile try to execute rm -f /lib/security/pam_u2f.la

Reproducible: Always

Steps to Reproduce:
1. CC=clang
2. emerge sys-auth/pam_u2f
3.
Actual Results:  
1. 
/bin/sh ../libtool  --tag=CC   --mode=link clang  -march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin -Wl,--wrap=strdup -Wl,--wrap=calloc -fsanitize=fuzzer,address,signed-integer-overflow -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -flto=thin -Wl,-O3 -Wl,--gc-sections -march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -stdlib=libc++ -o fuzz_format_parsers fuzz_format_parsers.o -lpam -lfido2 -lcrypto -lcrypto -lpam
2.
make  install-exec-hook
make[3]: Entering directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1'
rm -f /lib/security/pam_u2f.la
 * ACCESS DENIED:  unlinkat:     /lib/security/pam_u2f.la
rm: cannot remove '/lib/security/pam_u2f.la': Permission denied
make[3]: *** [Makefile:1210: install-exec-hook] Error 1
make[3]: Leaving directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1'
make[2]: *** [Makefile:1129: install-exec-am] Error 2
make[2]: Leaving directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1'
make[1]: *** [Makefile:1068: install-am] Error 2
make[1]: Leaving directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1'
make: *** [Makefile:758: install-recursive] Error 1
Comment 1 12101111 2021-06-02 03:00:14 UTC
Created attachment 713220 [details]
build.log
Comment 2 12101111 2021-06-02 03:01:28 UTC
Created attachment 713223 [details]
emerge --info
Comment 3 Larry the Git Cow gentoo-dev 2021-06-02 10:33:49 UTC
The bug has been closed via the following commit(s):

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

commit 5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-06-02 10:33:33 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-06-02 10:33:33 +0000

    sys-auth/pam_u2f: Fix install-exec-hook to respect DESTDIR
    
    Closes: https://bugs.gentoo.org/793797
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-auth/pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch | 13 +++++++++++++
 sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild                   |  9 ++-------
 2 files changed, 15 insertions(+), 7 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2021-06-07 08:00:47 UTC
The bug has been closed via the following commit(s):

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

commit 3450c682f3907dc37bff7b08e2cc771747b8508f
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-06-07 08:00:27 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-06-07 08:00:27 +0000

    sys-auth/pam_u2f: upstream patch for DESTDIR fixes
    
    Closes: https://bugs.gentoo.org/793797
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch | 31 +++++++++++++++++++---
 1 file changed, 28 insertions(+), 3 deletions(-)