aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test/file_immutable
blob: 46c81692efb5b3f220321495182d198da635d3e1 (plain)
1
2
3
4
5
6
7
8
9
10
# This creates an immutable file, which we previously failed to clean up.
# Note: the ioctl only works on ext4 but not on tmpfs, so it will fail with namespace sandbox.
# It also requires root, so will fail with setuid.
# requires: -sandbox=namespace -sandbox=setuid

r0 = openat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x26e1, 0x0)
ioctl$FS_IOC_FSSETXATTR(r0, 0x40086602, &AUTO={0x17e, 0x0, 0x0, 0x0, 0x0, "0000000000000000"})
mkdirat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x1ff)
r1 = openat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x0, 0x0)
ioctl$FS_IOC_FSSETXATTR(r1, 0x40086602, &AUTO={0x17e, 0x0, 0x0, 0x0, 0x0, "0000000000000000"})