Skip to content
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

Update and automate rancher-selinux.spec dep versions #39

Open
andypitcher opened this issue Jan 5, 2024 · 1 comment
Open

Update and automate rancher-selinux.spec dep versions #39

andypitcher opened this issue Jan 5, 2024 · 1 comment

Comments

@andypitcher
Copy link
Contributor

andypitcher commented Jan 5, 2024

rancher-selinux's rpm build relies on rancher-selinux.spec which is a recipe that the rpmbuild utility uses to build rancher-selinux rpm.

In these terms, both container-selinux and selinux-policy-base versions are defined through this file, and are installed on the OS during rancher-selinux's installation.

We want to make sure, that the most recent versions are used. As an example, Centos7 repos currently list container-selinux 2.119 but 2.107.3 is defined in rancher-selinux.spec .

@andypitcher
Copy link
Contributor Author

andypitcher commented Jan 15, 2025

Info to update for Centos8/9/10 and MicroOS (tumbleweed) and Fedora40/41:

Centos8

container-selinux-2.229.0-2.module_el8+847+7863d4e6.src.rpm && selinux-policy-3.14.3-139.el8.src.rpm
Name         : container-selinux
Epoch        : 2
Version      : 2.229.0
Release      : 2.module_el8+847+7863d4e6
Architecture : noarch
Size         : 71 k
Source       : container-selinux-2.229.0-2.module_el8+847+7863d4e6.src.rpm
Repository   : appstream
Summary      : SELinux policies for container runtimes
URL          : https://github.com/containers/container-selinux
License      : GPLv2
Description  : SELinux policy modules for use with container runtimes.

Name         : selinux-policy
Version      : 3.14.3
Release      : 139.el8
Architecture : noarch
Size         : 669 k
Source       : selinux-policy-3.14.3-139.el8.src.rpm
Repository   : baseos
Summary      : SELinux policy configuration
URL          : https://github.com/fedora-selinux/selinux-policy
License      : GPLv2+
Description  : SELinux Base package for SELinux Reference Policy - modular.
             : Based off of reference policy: Checked out revision  2.20091117

Centos9

container-selinux-2.234.2-1.el9.src.rpm && selinux-policy-38.1.50-1.el9.src.rpm
Name         : container-selinux
Epoch        : 3
Version      : 2.234.2
Release      : 1.el9
Architecture : noarch
Size         : 62 k
Source       : container-selinux-2.234.2-1.el9.src.rpm
Repository   : appstream
Summary      : SELinux policies for container runtimes
URL          : https://github.com/containers/container-selinux
License      : GPL-2.0-only
Description  : SELinux policy modules for use with container runtimes.

Name         : selinux-policy
Version      : 38.1.50
Release      : 1.el9
Architecture : noarch
Size         : 48 k
Source       : selinux-policy-38.1.50-1.el9.src.rpm
Repository   : baseos
Summary      : SELinux policy configuration
URL          : https://github.com/fedora-selinux/selinux-policy
License      : GPLv2+
Description  : SELinux core policy package.
             : Originally based off of reference policy,
             : the policy has been adjusted to provide support for Fedora.

Centos10

container-selinux-2.234.2-1.el10.src.rpm && selinux-policy-40.13.21-1.el10.src.rpm
Name         : container-selinux
Epoch        : 3
Version      : 2.234.2
Release      : 1.el10
Architecture : noarch
Size         : 63 k
Source       : container-selinux-2.234.2-1.el10.src.rpm
Repository   : appstream
Summary      : SELinux policies for container runtimes
URL          : https://github.com/containers/container-selinux
License      : GPL-2.0-only
Description  : SELinux policy modules for use with container runtimes.

Name         : selinux-policy
Version      : 40.13.21
Release      : 1.el10
Architecture : noarch
Size         : 46 k
Source       : selinux-policy-40.13.21-1.el10.src.rpm
Repository   : baseos
Summary      : SELinux policy configuration
URL          : https://github.com/fedora-selinux/selinux-policy
License      : GPL-2.0-or-later
Description  : SELinux core policy package.
             : Originally based off of reference policy,
             : the policy has been adjusted to provide support for Fedora.

MicroOS (tumbleweed)

container-selinux-2.234.2-1.1.src && selinux-policy-20250109-1.1.src
Information for package container-selinux:
------------------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : container-selinux
Version        : 2.234.2-1.1
Arch           : noarch
Vendor         : openSUSE
Installed Size : 89.1 KiB
Installed      : No
Status         : not installed
Source package : container-selinux-2.234.2-1.1.src
Upstream URL   : https://github.com/containers/container-selinux
Summary        : SELinux policies for container runtimes
Description    :
    SELinux policy modules for use with container runtimes.


Information for package selinux-policy:
---------------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : selinux-policy
Version        : 20250109-1.1
Arch           : noarch
Vendor         : openSUSE
Installed Size : 24.9 KiB
Installed      : No
Status         : not installed
Source package : selinux-policy-20250109-1.1.src
Upstream URL   : https://github.com/fedora-selinux/selinux-policy.git
Summary        : SELinux policy configuration
Description    :
    A complete SELinux policy that can be used as the system policy for a variety
    of systems and used as the basis for creating other policies.

Fedora40

container-selinux-2.234.2-1.fc40.src.rpm && selinux-policy-40.29-2.fc40.src.rpm
Name         : container-selinux
Epoch        : 2
Version      : 2.234.2
Release      : 1.fc40
Architecture : noarch
Size         : 60 k
Source       : container-selinux-2.234.2-1.fc40.src.rpm
Repository   : updates
Summary      : SELinux policies for container runtimes
URL          : https://github.com/containers/container-selinux
License      : GPL-2.0-only
Description  : SELinux policy modules for use with container runtimes.

Name         : selinux-policy
Version      : 40.29
Release      : 2.fc40
Architecture : noarch
Size         : 62 k
Source       : selinux-policy-40.29-2.fc40.src.rpm
Repository   : updates
Summary      : SELinux policy configuration
URL          : https://github.com/fedora-selinux/selinux-policy
License      : GPL-2.0-or-later
Description  : SELinux core policy package.
             : Originally based off of reference policy,
             : the policy has been adjusted to provide support for Fedora.

Fedora41

container-selinux-2.234.2-1.fc41.src.rpm && selinux-policy-41.28-1.fc41.src.rpm
Name           : container-selinux
Epoch          : 2
Version        : 2.234.2
Release        : 1.fc41
Architecture   : noarch
Download size  : 60.1 KiB
Installed size : 72.1 KiB
Source         : container-selinux-2.234.2-1.fc41.src.rpm
Repository     : updates
Summary        : SELinux policies for container runtimes
URL            : https://github.com/containers/container-selinux
License        : GPL-2.0-only
Description    : SELinux policy modules for use with container runtimes.
Vendor         : Fedora Project

Name           : selinux-policy
Epoch          : 0
Version        : 41.28
Release        : 1.fc41
Architecture   : noarch
Download size  : 56.6 KiB
Installed size : 31.4 KiB
Source         : selinux-policy-41.28-1.fc41.src.rpm
Repository     : updates
Summary        : SELinux policy configuration
URL            : https://github.com/fedora-selinux/selinux-policy
License        : GPL-2.0-or-later
Description    : SELinux core policy package.
               : Originally based off of reference policy,
               : the policy has been adjusted to provide support for Fedora.
Vendor         : Fedora Project

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

No branches or pull requests

1 participant