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

Don't depend on dist-git-selinux inside containers #40

Merged
merged 1 commit into from Jul 28, 2020

Conversation

praiskup
Copy link
Member

Container environments usually don't have the selinux-policy-targeted
package installed, and SELinux isn't enabled from the "inside"
perspective.

Therefore, let's don't depend on the selinux sub-package as long as
the selinux-policy-targeted package isn't installed. This
dependency conditional idiom is for quite some time used in
copr-backend.spec (and friends) with the corresponding copr-selinux
package.

Container environments usually don't have the selinux-policy-targeted
package installed, and SELinux isn't enabled from the "inside"
perspective.

Therefore, let's don't depend on the selinux sub-package as long as
the selinux-policy-targeted package isn't installed.  This
dependency conditional idiom is for quite some time used in
copr-backend.spec (and friends) with the corresponding copr-selinux
package.
@clime
Copy link
Contributor

clime commented Jul 28, 2020

Thank you. Good idea.

@clime clime merged commit c30673c into release-engineering:master Jul 28, 2020
fedora-copr-github-bot pushed a commit to fedora-copr/copr that referenced this pull request Aug 3, 2020
SELinux is _not_ running inside a consider, but on host (outside).  Not
only the installation of copr-selinux is useless inside -- there also
are some weird problems with the installation of selinux-policy package
(transitive dep) inside a buildah container.

We already use conditional Requires: in Copr packages, but there's still
a problem in dist-git.spec: dist-git brings -> dist-git-selinux ->
selinux-policy.  This causes container image build problems.  Will be
fixed here:
release-engineering/dist-git#40
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

Successfully merging this pull request may close these issues.

None yet

2 participants