aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/test/landlock_fs_ioctl8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/linux/test/landlock_fs_ioctl b/sys/linux/test/landlock_fs_ioctl
index 2c2549347..5ac482216 100644
--- a/sys/linux/test/landlock_fs_ioctl
+++ b/sys/linux/test/landlock_fs_ioctl
@@ -1,6 +1,6 @@
-# Makes a regular file.
+# Makes a character device /dev/null
-mknodat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x81c0, 0x0)
+mknodat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x21c0, 0x103)
# Creates a ruleset to restrict most filesystem IOCTLs: LANDLOCK_ACCESS_FS_IOCTL_DEV.
@@ -17,9 +17,9 @@ landlock_restrict_self(r0, 0x0)
r1 = openat$dir(0xffffffffffffff9c, &AUTO='./file0\x00', 0x2, 0x0)
-# Denied FIOQSIZE IOCTL.
+# Denied FIONREAD (not really but same value) IOCTL.
-ioctl(r1, 0x5460, 0x0) # EACCES
+ioctl(r1, 0x541b, 0x0) # EACCES
# Allowed FIOCLEX IOCTL.