-
Notifications
You must be signed in to change notification settings - Fork 391
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
[JENKINS-64913] CliGitAPIImpl.java: fixSELinuxLabel(): add some sanity… #690
Conversation
For now I refrained from checking For a quick check, GNU (on Debian) and busybox (on Android) implementations do produce different outputs.
It adds the label column before date/time for
|
The change is yet to be tested; in particular, it seems that:
|
…y checks whether SELinux is disabled so we do not care to relabel right now
d33852e
to
3bbc5d2
Compare
Checked on the original system that started this subject - there a job run correctly detected (and reported) that the process is running in a labeled security context, and that SELinux is set to "enforcing" mode, so it tried to After a |
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.
Thanks @jimklimov . The results of my testing look great. I'm merging it so that I can run further testing in my environment.
…checks whether SELinux is disabled so we do not care to relabel right now
JENKINS-64913 - less noise when SELinux is not in our way
Follows up from #673 to avoid changing labeled context on files (and so reducing noise due to errors) if SELinux is not a problem on the current system at this time, even if tools are present and subsystem mildly enabled.
Checklist
Types of changes
What types of changes does your code introduce? Put an
x
in the boxes that applyFurther comments
The change is not very big, but rather complicated research led to it. It is detailed in the JIRA ticket and comments in #673 from mid-March 2021.