Uh oh!
There was an error while loading. Please reload this page.
runtime: support IDMappings validation - #209
Merged
mrunalp merged 1 commit intoOct 12, 2016
Merged
Conversation
Mashimiaoforce-pushed
the
runtime-test-id-mappings-validation
branch
from
September 13, 2016 01:07
1a3d905 to
77affb7Compare| case "uid_map": | ||
| mapFile = "/proc/1/uid_map" | ||
| case "gid_map": | ||
| mapFile = "/proc/1/gid_map" |
Contributor
There was a problem hiding this comment.
Can we look at /proc/self/*_map instead? Then we don't have to think about “is it ok to look at PID 1's maps?”. I can't think of a case where looking at PID 1 would be wrong, but I know looking at /proc/self/*_map will be right ;).
Contributor
There was a problem hiding this comment.
And I'd bump this choice up to the caller and have getIDMappings take a path:
func getIDMappings(path string) ([]rspec.IDMapping, error)
Mashimiaoforce-pushed
the
runtime-test-id-mappings-validation
branch
2 times, most recently
from
September 14, 2016 08:44
e5725bd to
c746333CompareSigned-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Mashimiaoforce-pushed
the
runtime-test-id-mappings-validation
branch
from
October 8, 2016 02:00
c746333 to
46fea50CompareMashimiao
commented
Oct 8, 2016
Author
@mrunalp@liangchenye rebased. |
mrunalp
commented
Oct 12, 2016
Contributor
LGTM |
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 freeto 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.
Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com