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

use mount flag to force consistent selinux labelling between host/guest on generated files #1060

Conversation

grokspawn
Copy link
Contributor

@grokspawn grokspawn commented Jan 26, 2023

Signed-off-by: Jordan jordan@nimblewidget.com

Description of the change:

Motivation for the change:
without this flag, there is inconsistent labeling between intermediate composite template products on the host and the container which will (read-only) access them.
When selinux is in enforcing mode, these steps will fail to execute.
For more info, https://projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /docs
  • Commit messages sensible and descriptive

…st on generated files

Signed-off-by: Jordan <jordan@nimblewidget.com>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 26, 2023
@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Merging #1060 (62af15c) into master (f2a371f) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1060      +/-   ##
==========================================
+ Coverage   52.74%   52.76%   +0.02%     
==========================================
  Files         106      106              
  Lines        9375     9375              
==========================================
+ Hits         4945     4947       +2     
+ Misses       3517     3515       -2     
  Partials      913      913              
Impacted Files Coverage Δ
alpha/veneer/composite/builder.go 97.20% <100.00%> (ø)
alpha/veneer/semver/semver.go 65.02% <0.00%> (+0.49%) ⬆️
pkg/cache/pkgs.go 70.40% <0.00%> (+0.80%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me. Thanks for digging into this!

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: everettraven, grokspawn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@everettraven
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 26, 2023
@openshift-merge-robot openshift-merge-robot merged commit 67e6777 into operator-framework:master Jan 26, 2023
@grokspawn grokspawn deleted the composite-selinux-labelling-fix branch January 26, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants