Skip to content

techdebt: remove support for old distros (3.10 targets) #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2022

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Apr 11, 2022

Description of the Pull Request (PR):

techdebt: Remove workaround for squashfs-tools <4.3
A workaround was in place for squashfs-tools <4.3 which does not support the user-xattrs flag. All our target distros use 4.3 or
later, so remove the conditionals to simplify the squashfs unpack logic.

techdebt: remove pkg/network test conditional for EL6
We no longer support EL6 which has been EOL for some time.

techdebt: drop _LINUX_CAPABILITY_VERSION_2 support

In starter we are currently allowing _LINUX_CAPABILITY_VERSION_2, but this was specific to kernel 2.6.25, and deprecated in 2.6.26, which is older than used by any system we target / test on.

See also:

https://github.com/torvalds/linux/blob/v2.6.26/include/linux/capability.h#L34

https://man7.org/linux/man-pages/man2/capset.2.html

Kernels prior to 2.6.25 prefer 32-bit capabilities with version _LINUX_CAPABILITY_VERSION_1. Linux 2.6.25 added 64-bit capability sets, with version _LINUX_CAPABILITY_VERSION_2. There was, however, an API glitch, and Linux 2.6.26 added _LINUX_CAPABILITY_VERSION_3 to fix the problem.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

dtrudg added 3 commits April 11, 2022 09:13
A workaround was in place for squashfs-tools <4.3 which does not
support the `user-xattrs` flag. All our target distros use 4.3 or
later, so remove the conditionals to simplify the squashfs unpack
logic.
We no longer support EL6 which has been EOL for some time.
In starter we are currently allowing _LINUX_CAPABILITY_VERSION_2, but
this was specific to kernel 2.6.25, and deprecated in 2.6.26, which is
older than used by any system we target / test on.

See also:

https://github.com/torvalds/linux/blob/v2.6.26/include/linux/capability.h#L34

https://man7.org/linux/man-pages/man2/capset.2.html

 Kernels prior to 2.6.25 prefer 32-bit capabilities with version
 _LINUX_CAPABILITY_VERSION_1.  Linux 2.6.25 added 64-bit
 capability sets, with version _LINUX_CAPABILITY_VERSION_2.  There
 was, however, an API glitch, and Linux 2.6.26 added
 _LINUX_CAPABILITY_VERSION_3 to fix the problem.
@dtrudg dtrudg added this to the SingularityCE 3.10 milestone Apr 11, 2022
@dtrudg dtrudg self-assigned this Apr 11, 2022
Copy link
Member

@tri-adam tri-adam left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

Removal of Code Supporting Legacy Distros (3.10 tasks)
2 participants