Skip to content

Commit

Permalink
Update syscall/landlock_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoack committed Oct 13, 2024
1 parent 0187f7c commit 4ec8721
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion landlock/syscall/landlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ func TestAccessRights(t *testing.T) {
{"MakeBlock", AccessFSMakeBlock, unix.LANDLOCK_ACCESS_FS_MAKE_BLOCK},
{"MakeSym", AccessFSMakeSym, unix.LANDLOCK_ACCESS_FS_MAKE_SYM},
{"Refer", AccessFSRefer, unix.LANDLOCK_ACCESS_FS_REFER},
{"Truncate", AccessFSTruncate, AccessFSRefer << 1},
{"Truncate", AccessFSTruncate, unix.LANDLOCK_ACCESS_FS_TRUNCATE},
{"IoctlDev", AccessFSIoctlDev, AccessFSTruncate << 1},
} {
t.Run(tt.Name, func(t *testing.T) {
if tt.LandlockDef != tt.SyscallDef {
Expand Down

0 comments on commit 4ec8721

Please sign in to comment.