linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 999 forks source link

flistxattr01: enlarging the buffer to accommodate multi-extended attribute OS #1010

Closed frank25041 closed 1 year ago

frank25041 commented 1 year ago

The security policy of the KylinOS needs to automatically assign extended attributes to newly created temporary files. At present, the number of extended attributes in the system is quite large, and the size of the cache area for obtaining extended attributes in the flistxattr01 test case is limited. If we continue to add extended attributes, the list of extended attributes will exceed 64 bytes, and an error will be reported (ERANGE) like this:

kylin@kylin-XYABC:/opt/ltp/testcases/bin$ sudo ./flistxattr01 tst_test.c:1244: INFO: Timeout per run is 0h 05m 00s flistxattr01.c:63: FAIL: flistxattr() failed: ERANGE (34)

Summary: passed 0 failed 1 skipped 0 warnings 0

Considering these extended properties of our OS is necessary,so we recommend fixing this to pass the test

Signed-off-by: Frank He hexiaoxiao@kylinos.cn

[ type description here; PLEASE REMOVE THIS LINE AND THE LINES BELOW BEFORE SUBMITTING THIS PULL REQUEST ]

metan-ucw commented 1 year ago

Applied, thanks.