AuTest: address various permissions issues#8512
Merged
randall merged 1 commit intoapache:9.1.xfrom Nov 17, 2021
Merged
Conversation
By default, the Traffic Server process runs as user nobody. This often isn't a problem with the AuTest runs, but in certain circumstances this process will not be able to either read or write from certain locations. For instance, by default, shells in docker containers run as root and the home directory is /root with permissions set to 550. There's nothing fundamental about AuTest that prevents this, but since the ATS process is unprivileged it will not be able to read or write to anything in /root. There can be other manifestations of permissions limitations like this. The AuTest Traffic Server extension already sets up various directories in the sandbox chowned to nobody for the ATS process to access. This tweaks a few of the tests that assumed ATS access outside of these directories to use these designated ones. This allows the test to run in more environments. (cherry picked from commit 36440ef) Conflicts: tests/gold_tests/tls/tls_client_verify3.test.py
Contributor
Author
|
Backport of #7668 to 9.1.x |
bneradt
approved these changes
Nov 12, 2021
Contributor
bneradt
left a comment
There was a problem hiding this comment.
Looks good. Thanks for backporting this to 9.1.x.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By default, the Traffic Server process runs as user nobody. This often isn't a
problem with the AuTest runs, but in certain circumstances this process will
not be able to either read or write from certain locations. For instance, by
default, shells in docker containers run as root and the home directory is
/root with permissions set to 550. There's nothing fundamental about AuTest
that prevents this, but since the ATS process is unprivileged it will not be
able to read or write to anything in /root. There can be other manifestations
of permissions limitations like this.
The AuTest Traffic Server extension already sets up various directories in the
sandbox chowned to nobody for the ATS process to access. This tweaks a few of
the tests that assumed ATS access outside of these directories to use these
designated ones. This allows the test to run in more environments.
(cherry picked from commit 36440ef)
Conflicts:
tests/gold_tests/tls/tls_client_verify3.test.py