Skip to content

Commit

Permalink
Merge pull request #3603 from kolyshkin/drop-inh
Browse files Browse the repository at this point in the history
tests/int: do not set inheritable capabilities
  • Loading branch information
AkihiroSuda authored Oct 7, 2022
2 parents fa47a92 + e965e10 commit 526d3b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tests/integration/dev.bats
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function teardown() {
| .linux.devices = [{"path": "/dev/kmsg", "type": "c", "major": 1, "minor": 11}]
| .process.capabilities.bounding += ["CAP_SYSLOG"]
| .process.capabilities.effective += ["CAP_SYSLOG"]
| .process.capabilities.inheritable += ["CAP_SYSLOG"]
| .process.capabilities.permitted += ["CAP_SYSLOG"]
| .process.args |= ["sh"]'

Expand Down Expand Up @@ -78,7 +77,6 @@ function teardown() {
| .process.args |= ["sh"]
| .process.capabilities.bounding += ["CAP_SYSLOG"]
| .process.capabilities.effective += ["CAP_SYSLOG"]
| .process.capabilities.inheritable += ["CAP_SYSLOG"]
| .process.capabilities.permitted += ["CAP_SYSLOG"]
| .hostname = "myhostname"'

Expand Down Expand Up @@ -114,7 +112,6 @@ function teardown() {
| .process.args |= ["sh"]
| .process.capabilities.bounding += ["CAP_MKNOD"]
| .process.capabilities.effective += ["CAP_MKNOD"]
| .process.capabilities.inheritable += ["CAP_MKNOD"]
| .process.capabilities.permitted += ["CAP_MKNOD"]'

runc run -d --console-socket "$CONSOLE_SOCKET" test_allow_block
Expand Down
1 change: 0 additions & 1 deletion tests/integration/update.bats
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ EOF
| .linux.devices = [{"path": "/dev/kmsg", "type": "c", "major": 1, "minor": 11}]
| .process.capabilities.bounding += ["CAP_SYSLOG"]
| .process.capabilities.effective += ["CAP_SYSLOG"]
| .process.capabilities.inheritable += ["CAP_SYSLOG"]
| .process.capabilities.permitted += ["CAP_SYSLOG"]
| .process.args |= ["sh", "-c", "while true; do head -c 100 /dev/kmsg 2> /dev/null; done"]'

Expand Down

0 comments on commit 526d3b3

Please sign in to comment.