Description of problem: snapd is not installable on Amazon Linux 2 Version-Release number of selected component (if applicable): 2.54.2-1.el7 How reproducible: always Steps to Reproduce: 1. sudo amazon-linux-extras install epel 2. sudo yum install snapd Actual results: Error: Package: snapd-selinux-2.54.2-1.el7.noarch (epel) Requires: selinux-policy-base >= 3.13.1-268.el7_9.2 Installed: selinux-policy-targeted-3.13.1-192.amzn2.6.7.noarch (installed) selinux-policy-base = 3.13.1-192.amzn2.6.7 Expected results: snapd is installed Additional info: The problem can be made smaller by installing Amazon's selinux-ng extra. After doing this using the command `sudo amazon-linux-extras install selinux-ng`, the error becomes: Error: Package: snapd-selinux-2.54.2-1.el7.noarch (epel) Requires: selinux-policy-base >= 3.13.1-268.el7_9.2 Installed: selinux-policy-targeted-3.13.1-268.amzn2.2.2.noarch (@amzn2extra-selinux-ng) selinux-policy-base = 3.13.1-268.amzn2.2.2 Is it possible to relax snapd-selinux's selinux-policy-base dependency to make it easier to install snapd on Amazon Linux 2? Given the popularity of Amazon Linux 2 in EC2, I think making it installable there would be a significant benefit to the snap ecosystem. I've also been talking to Amazon about this, but the best suggestion I've got from them so far is to install selinux-ng and ignore the dependency conflict. Is it possible to resolve the issue here or make it easier for them to resolve there?
This is exactly what is also generated by %{selinux_requires} RPM macro. I'm not a SELinux expert, but given that the modules are compiled down to a binary representation, I would assume that policy versions have meaning and it's not a matter of relaxing the dependency. You can always rebuild the package yourself from the source RPM or suggest to Amazon to provide snapd in their Extras repository. I'm not a customer of Amazon, so I have no say in what they provide in their repositories.