-
Notifications
You must be signed in to change notification settings - Fork 788
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
executor: Share selinux
(process and mount
) label
of first stage with other stages in same build
#3693
executor: Share selinux
(process and mount
) label
of first stage with other stages in same build
#3693
Conversation
selinux
(process and mount) label of first stage with other stages in same buildselinux
(process and mount
) label
of first stage with other stages in same build
5325a1d
to
204e2d2
Compare
LGTM |
204e2d2
to
d5dea4c
Compare
…uild Buildah `builds` are composed of various `stages`. That is each `stage` in a build is a `container`. As of now buildah does not provides any `processLabel` and `mountLabel` to the stage containers which results in `c/storage` assigning random generated `selinux` labels to each stage. If each stage has its own unqiue `processLabel` and `mountLabel` stages cannot be mounted across each other in the same build as `selinux` prevents that. We get the `processLabel` and `mountLabel` of the first stage created by the executor ( label assigned by `c/stoage` ) and share it with all the other subsequent stages of the same build. Signed-off-by: Aditya Rajan <[email protected]>
…abled Stage mounting was not functionl for systems with `selinux` enabled following commit makes sure we enable it and removes temporary workaround/hack which was preventing to do it. Signed-off-by: Aditya Rajan <[email protected]>
d5dea4c
to
5c26f71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, giuseppe 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 |
This should also close: #3501 completely |
Why do we need this ?
Buildah
builds
are composed of variousstages
. That is eachstage
in a build is acontainer
.As of now buildah does not provides any
processLabel
andmountLabel
to the stage container whichresults in
c/storage
assigning random generatedselinux
labels to each stage.As a result this PR also enables following feature on systems with
selinux
enabled: #3590Problem
If each stage has its own unqiue
processLabel
andmountLabel
stages cannot be mounted across each otherin the same build.
selinux
prevents that.Solution
We get the
processLabel
andmountLabel
of the first stage created by the container i.e assigned byc/stoage
and share it with all the other subsequent stages of the same build.