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: CONFIRMED
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: 2022-01-11 01:35 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.