Skip to content

Commit 89b7160

Browse files
authored
Merge pull request #5534 from dctrud/rhel7-caps
Allow RHEL7 cap set in e2e/security tests
2 parents 53c6833 + 63662e3 commit 89b7160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: e2e/security/security.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (c ctx) testSecurityPriv(t *testing.T) {
157157
name: "capabilities_keep",
158158
argv: []string{"grep", "^CapEff:", "/proc/self/status"},
159159
opts: []string{"--keep-privs"},
160-
expectOp: e2e.ExpectOutput(e2e.RegexMatch, `CapEff:\s+[0f]{6}[3f]fffffffff\n`),
160+
expectOp: e2e.ExpectOutput(e2e.RegexMatch, `CapEff:\s+[0f]{6}[13f]fffffffff\n`),
161161
},
162162
{
163163
// this might break if new capabilities are
@@ -171,7 +171,7 @@ func (c ctx) testSecurityPriv(t *testing.T) {
171171
name: "capabilities_drop",
172172
argv: []string{"grep", "^CapEff:", "/proc/self/status"},
173173
opts: []string{"--drop-caps", "CAP_NET_RAW"},
174-
expectOp: e2e.ExpectOutput(e2e.RegexMatch, `CapEff:\s+[0f]{6}[3f]fffffdfff\n`),
174+
expectOp: e2e.ExpectOutput(e2e.RegexMatch, `CapEff:\s+[0f]{6}[13f]fffffdfff\n`),
175175
},
176176
}
177177

0 commit comments

Comments
 (0)