Skip to content

Conversation

xnox
Copy link
Member

@xnox xnox commented Apr 17, 2025

lib64 has always been a symlink to lib in wolfi. However file
installation has been soft allowed into that location. As it sort of
worked if wolfi-baselayout is unpacked first. But it still leads to
apk audit failing. As we are getting more strict with file locations
in the .apks, add /lib64 and /usr/lib64 linting.

At this time one should use /lib and /usr/lib locations instead.

lib64 has always been a symlink to lib in wolfi. However file
installation has been soft allowed into that location. As it sort of
worked if wolfi-baselayout is unpacked first. But it still leads to
`apk audit` failing. As we are getting more strict with file locations
in the .apks, add /lib64 and /usr/lib64 linting.

At this time one should use /lib and /usr/lib locations instead.
@xnox
Copy link
Member Author

xnox commented Apr 17, 2025

glibc is now merged; and should rebuild as green.

but also need to run analysis on /lib64 usage.

@xnox
Copy link
Member Author

xnox commented Apr 17, 2025

gitsign & guac => it's just CVE flag up, the build is successful.

@@ -811,6 +812,12 @@ func usrmergeLinter(ctx context.Context, _ *config.Configuration, _ string, fsys
if strings.HasPrefix(path, "usr/sbin") {
return fmt.Errorf("package writes to /usr/sbin in violation of usrmerge: %s", path)
}
if strings.HasPrefix(path, "lib64") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be refactored to for _, symlink := range symlinked; [...] now

smoser
smoser previously approved these changes Apr 17, 2025
Copy link
Contributor

@smoser smoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of "right now" usr/lib64 has offenders in

repo origin binpkg
wolfi apache-orc apache-orc
wolfi apache-orc apache-orc-dev
wolfi fontforge fontforge
wolfi libffi libffi
wolfi libffi libffi-dev
wolfi libffi libffi-pic-dev
wolfi mimalloc2 mimalloc2
wolfi mimalloc2 mimalloc2-dev
wolfi mold mold
extras msodbcsql18 msodbcsql18
wolfi sysstat sysstat
wolfi xfsprogs xfsprogs-dev
wolfi xfsprogs xfsprogs-libs

@smoser smoser dismissed their stale review April 17, 2025 18:11

meant to not approve and only comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants