Skip to content

Commit

Permalink
s/a/n/listener: correct size of Class and Op in msgNotificationFile t…
Browse files Browse the repository at this point in the history
…o match fields in msgNotificationOpKernel
  • Loading branch information
andrewphelpsj committed Feb 1, 2024
1 parent cc6f9c4 commit 0c04d6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sandbox/apparmor/notify/listener/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ type msgNotificationFile struct {
Deny uint32
Pid uint32
Label uint32
Class uint32
Op uint32
Class uint16
Op uint16
// msgNotificationFileKernel
SUID uint32
OUID uint32
Expand Down Expand Up @@ -642,7 +642,7 @@ func (*listenerSuite) TestRunErrors(c *C) {
msgNotificationFile{
Length: 1234,
},
`cannot extract first message: length in header exceeds data length: 1234 > 56`,
`cannot extract first message: length in header exceeds data length: 1234 > 52`,
},
{
msgNotificationFile{
Expand All @@ -659,18 +659,18 @@ func (*listenerSuite) TestRunErrors(c *C) {
},
{
msgNotificationFile{
Length: 56,
Length: 52,
Version: 3,
NotificationType: notify.APPARMOR_NOTIF_CANCEL,
},
`unsupported notification type: APPARMOR_NOTIF_CANCEL`,
},
{
msgNotificationFile{
Length: 56,
Length: 52,
Version: 3,
NotificationType: notify.APPARMOR_NOTIF_OP,
Class: uint32(notify.AA_CLASS_DBUS),
Class: uint16(notify.AA_CLASS_DBUS),
},
`unsupported mediation class: AA_CLASS_DBUS`,
},
Expand Down

0 comments on commit 0c04d6f

Please sign in to comment.