From d46deef51c0809429c414eea99566b82b6d5fbbf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 8 Aug 2018 15:06:29 +0200 Subject: executor: clean up immutable files Fixes #650 --- sys/linux/test/file_immutable | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sys/linux/test/file_immutable (limited to 'sys/linux/test') diff --git a/sys/linux/test/file_immutable b/sys/linux/test/file_immutable new file mode 100644 index 000000000..8c22eb857 --- /dev/null +++ b/sys/linux/test/file_immutable @@ -0,0 +1,7 @@ +# 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, &(0x7f0000000000)='./file0\x00', 0x26e1, 0x0) +ioctl$FS_IOC_FSSETXATTR(r0, 0x40086602, &(0x7f0000000100)={0x17e}) -- cgit mrf-deployment