Skip to content

Commit

Permalink
interfaces/apparmor: make the HomeIx unit test more realistic
Browse files Browse the repository at this point in the history
The HOME_IX pattern is only included and expanded when processing snippets.

Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Apr 25, 2024
1 parent 52bd5ee commit 15b23e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/apparmor/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,7 @@ func (s *backendSuite) TestPtraceTraceRule(c *C) {
}

func (s *backendSuite) TestHomeIxRule(c *C) {
restoreTemplate := apparmor.MockTemplate("template\n###SNIPPETS###\nneedle rwkl###HOME_IX###,\n")
restoreTemplate := apparmor.MockTemplate("template\n###SNIPPETS###\n")
defer restoreTemplate()
restore := apparmor_sandbox.MockLevel(apparmor_sandbox.Full)
defer restore()
Expand Down

0 comments on commit 15b23e9

Please sign in to comment.