Skip to content

Conversation

@dongsupark
Copy link

Split out the test function into checkMaskedPaths(), and add more cases for masked paths like subdirectory, file under subdirectory, and directory under subdirectory.

Test inside container should return error if a relative path is given for masked paths.

Deliberately create an invalid symlink that points out of the container, to see if the test fails inside the container.

Create masked block device, char device, and fifo, to check if they are masked as expected.

Split out the test function into `checkMaskedPaths()`, and add more
cases for masked paths like subdirectory, file under subdirectory,
and directory under subdirectory.

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
Dongsu Park added 3 commits June 12, 2018 10:35
Test inside container should return error if a relative path is given
for masked paths.

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
Deliberately create an invalid symlink that points out of the container,
to see if the test fails inside the container.

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
Create masked block device, char device, and fifo, to check if
they are masked as expected.

Signed-off-by: Dongsu Park <dongsu@kinvolk.io>
@zhouhao3
Copy link

zhouhao3 commented Jun 25, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit d8ff7a4 into opencontainers:master Jun 25, 2018
@dongsupark dongsupark deleted the dongsu/test-masked-paths branch June 25, 2018 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants