Updating Amazon Linux 2 packages selinux-policy and selinux-policy-targeted

0

I'm trying to install snapd on my system, but when running **yum install snapd ** I get the following error:

Error: Package: snapd-selinux-2.54.1-1.el7.noarch (epel) Requires: selinux-policy-base >= 3.13.1-268.el7_9.2

While there are various packages that provide selinux-policy-base, the latest version available seems to be: 3.13.1-192.amzn2.6.7, not the required 3.13.1-268. However, according to the Amazon Linux 2 release notes (https://aws.amazon.com/amazon-linux-2/release-notes/), the Amazon Linux 2.0.20211201.0 Update should provide both selinux-policy-3.13.1-268.amzn2.2.2.noarch and selinux-policy-targeted-3.13.1-268.amzn2.2.2.noarch.

My understanding is that Amazon Linux 2 should do an in place upgrade simply by running yum upgrade, but I've tried this to no avail. What's also interesting is that other packages in the Amazon Linux 2.0.20211201.0 Update are available. For instance nspr-4.32.0-1.amzn2.x86_64 and nss-softokn-3.67.0-3.amzn2.x86_64 are both there.

How do I get the latest Amazon Linux versions of selinux-policy-base and selinux-policy-targeted?

mighty
質問済み 2年前1995ビュー
1回答
0

Amazon Linux 2 does not support SELinux. Amazon Linux 2022 (now in preview) and Bottlerocket both support SELinux, though.

I do not believe AL2 supports snapd, either.

AWS
エキスパート
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ