cts: fix CtsDownloadManagerApi28 1 fail [1/2]
authorYonghui Yu <yonghui.yu@amlogic.com>
Fri, 18 Jun 2021 14:03:06 +0000 (22:03 +0800)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:13:11 +0000 (09:13 +0100)
PD#SWPL-51104

Problem:
CtsDownloadManagerApi28 fail because of ioctrl
failure on EXT4_IOC_FSGETXATTR and EXT4_IOC_FSSETXATTR.

Solution:
Add those two IOC to the compat_ioctrl.

Verify:
adt3

Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
Change-Id: I2ed64202819b15d6b8aa75b6aefd255a3580cbd1

fs/ext4/ioctl.c

index 368b0b353fe91140cf12d5f3c3f44f0c716ce7ef..dc80106fe52d601c40c1030fed380f3fe7547ef8 100644 (file)
@@ -951,6 +951,8 @@ long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        case EXT4_IOC_SET_ENCRYPTION_POLICY:
        case EXT4_IOC_GET_ENCRYPTION_PWSALT:
        case EXT4_IOC_GET_ENCRYPTION_POLICY:
+       case EXT4_IOC_FSGETXATTR:
+       case EXT4_IOC_FSSETXATTR:
                break;
        default:
                return -ENOIOCTLCMD;