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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则