Files
apfstests/tests/generic/555.out
T
Amir Goldstein 654a7814ad generic: check CAP_LINUX_IMMUTABLE capability with FS_IOC_FSSETXATTR
This is a flavor of test generic/545 with FS_IOC_FSSETXATTR ioctl
instead of FS_IOC_SETFLAGS ioctl.

Overlayfs gained support for FS_IOC_FSSETXATTR ioctl in v5.2-rc4
with buggy capability check. This change fixed the problem:

  ovl: fix wrong flags check in FS_IOC_FS[SG]ETXATTR ioctls

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2019-06-16 21:44:36 +08:00

10 lines
339 B
Plaintext

QA output created by 555
Create the original files
Try to xfs_io chattr +ia with capabilities CAP_LINUX_IMMUTABLE
Try to xfs_io chattr +ia/-ia without capability CAP_LINUX_IMMUTABLE
Operation not permitted
Operation not permitted
Operation not permitted
Operation not permitted
Try to xfs_io chattr -ia with capability CAP_LINUX_IMMUTABLE