Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669804 - sys-fs/nilfs-utils-2.2.2-r1 - QA Notice: The following files contain insecure RUNPATHs
Summary: sys-fs/nilfs-utils-2.2.2-r1 - QA Notice: The following files contain insecure...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-27 16:17 UTC by eroen
Modified: 2023-04-01 21:19 UTC (History)
0 users

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


Attachments
/var/log/portage/build/sys-fs/nilfs-utils-2.2.2:20181026-235512.log (nilfs-utils-2.2.2:20181026-235512.log,62.94 KB, text/plain)
2018-10-27 16:17 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2018-10-27 16:17:09 UTC
Created attachment 553366 [details]
/var/log/portage/build/sys-fs/nilfs-utils-2.2.2:20181026-235512.log

* Messages for package sys-fs/nilfs-utils-2.2.2:
 * Log file: /var/log/portage/build/sys-fs/nilfs-utils-2.2.2:20181026-235512.log

 * QA Notice: The following files contain insecure RUNPATHs
 *  Please file a bug about this at https://bugs.gentoo.org/
 *  with the maintainer of the package.
 *   /var/tmp/portage/sys-fs/nilfs-utils-2.2.2/image/sbin/nilfs_cleanerd
 *     RPATH: /var/tmp/portage/sys-fs/nilfs-utils-2.2.2/work/nilfs-utils-2.2.2/lib/.libs
 *
Comment 1 Agostino Sarubbo gentoo-dev 2021-11-15 08:54:44 UTC
tinderbox has reproduced this issue with version 2.2.2-r1 - Updating summary.
Comment 2 Naohiro Aota gentoo-dev 2022-01-11 01:35:33 UTC
The Makefile.am expects nilfs_cleanerd to be statically linked.

> # Use -static option to make nilfs_cleanerd self-contained.
> nilfs_cleanerd_LDFLAGS = -static

But, somehow libtool is ignoring that and leaving the bad rpath.

# ldd nilfs_cleanerd
        linux-vdso.so.1 (0x00007ffc0c958000)
        libnilfs.so.0 => /dev/shm/portage/sys-fs/nilfs-utils-2.2.8/work/nilfs-utils-2.2.8/lib/.libs/libnilfs.so.0 (0x00007f71d2fd8000)
        libnilfsgc.so.0 => /dev/shm/portage/sys-fs/nilfs-utils-2.2.8/work/nilfs-utils-2.2.8/lib/.libs/libnilfsgc.so.0 (0x00007f71d2fd0000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f71d2fa5000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f71d2db2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f71d2fee000)

I'm investigating how we can solve this.
Comment 3 Larry the Git Cow gentoo-dev 2022-01-24 00:51:25 UTC
The bug has been referenced in the following commit(s):

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

commit 0c9a6bf7989c7263299f1cbfa6e2107b1894eb93
Author:     Naohiro Aota <naota@gentoo.org>
AuthorDate: 2022-01-23 13:30:03 +0000
Commit:     Naohiro Aota <naota@gentoo.org>
CommitDate: 2022-01-24 00:35:39 +0000

    sys-fs/nilfs-utils: version bump to 2.2.8
    
    Version bump with also addressing the following bugs.
    
    Bug: https://bugs.gentoo.org/591084
    Bug: https://bugs.gentoo.org/669804
    Closes: https://bugs.gentoo.org/649030
    Signed-off-by: Naohiro Aota <naota@gentoo.org>

 sys-fs/nilfs-utils/Manifest                 |  1 +
 sys-fs/nilfs-utils/nilfs-utils-2.2.8.ebuild | 48 +++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2023-04-01 21:19:55 UTC
The bug has been closed via the following commit(s):

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

commit 9274a3870881b622763980ac9370b3b16b186a36
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-04-01 21:19:39 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-04-01 21:19:39 +0000

    sys-fs/nilfs-utils: drop 2.2.2-r1
    
    Closes: https://bugs.gentoo.org/591084
    Closes: https://bugs.gentoo.org/669804
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-fs/nilfs-utils/Manifest                    |  1 -
 sys-fs/nilfs-utils/nilfs-utils-2.2.2-r1.ebuild | 35 --------------------------
 2 files changed, 36 deletions(-)