github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/test/file_immutable (about) 1 # This creates an immutable file, which we previously failed to clean up. 2 # Note: the ioctl only works on ext4 but not on tmpfs, so it will fail with namespace sandbox. 3 # It also requires root, so will fail with setuid. 4 # requires: -sandbox=namespace -sandbox=setuid 5 6 r0 = openat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x26e1, 0x0) 7 ioctl$FS_IOC_FSSETXATTR(r0, 0x40086602, &AUTO={0x17e, 0x0, 0x0, 0x0, 0x0, "0000000000000000"}) 8 mkdirat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x1ff) 9 r1 = openat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x0, 0x0) 10 ioctl$FS_IOC_FSSETXATTR(r1, 0x40086602, &AUTO={0x17e, 0x0, 0x0, 0x0, 0x0, "0000000000000000"})