Skip to content

RFE: Make toolbox-init-container a fully static binary or disable CGO to avoid compatibility issues with container's glibc #832

Closed as not planned

Description

@travier

Is your feature request related to a problem? Please describe.
This is an RFE to solves issues such as #821 (comment #821 (comment)) and add support for non-glibc toolboxes.

Describe the solution you'd like
Convert toolbox-init-container as a standalone static binary.

Describe alternatives you've considered
N/A

Additional context
This is required to avoid breaking toolbox every time the host is newer than the containers.

Activity

  1. added
    1. Feature request
    on Jul 7, 2021
  2. IridiumXOR commented on Sep 8, 2021

    @IridiumXOR

    Please can you fix it? Toolbox is completely useless without the support for previous Fedora version on Fedora 35...

  3. travier commented on Oct 4, 2022

    @travier
    MemberAuthor
  4. debarshiray commented on Oct 14, 2022

    @debarshiray
    Member

    Thanks, @travier

    One of the reasons for writing that blog post was to have a single reference for issues and discussions like this one. Thanks for doing the triage for me!

  5. debarshiray commented on Nov 18, 2022

    @debarshiray
    Member

    One thing that came up recently in the context of the newly added --preserve-fds option, is that we would need a C constructor function (ie., __attribute__((constructor))) to validate the file descriptors. See podman-container-tools/podman#7125 for the discussion around the same check in Podman.

    We don't do this at the moment, but we should, if we want to have a better error message.

    I know this issue was about a static binary, but disabling the use of C (or CGO) is often brought up together with that. So, I thought I'd use the same issue to track both. I took the liberty to update the title to reflect that.

  6. changed the title [-]RFE: Make toolbox-init-container a fully static binary to avoid compatibility issues with container's glibc[/-] [+]RFE: Make toolbox-init-container a fully static binary or disable CGO to avoid compatibility issues with container's glibc[/+] on Nov 18, 2022
  7. debarshiray commented on Nov 30, 2022

    @debarshiray
    Member

    We are now using CGO to check the presence of subordinate user and group IDs using libsubid.so instead of looking at /etc/subuid and /etc/subgid, to support subordinate IDs provided by SSSD on enterprise FreeIPA set-ups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. Feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions