Skip to content

Commit 533af03

Browse files
Frank Hemetan-ucw
authored andcommitted
flistxattr01: enlarging the buffer to accommodate multi-extended attribute OS
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 Signed-off-by: Frank He <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 8b90998 commit 533af03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcases/kernel/syscalls/flistxattr/flistxattr01.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int has_attribute(const char *list, int llen, const char *attr)
4747

4848
static void verify_flistxattr(void)
4949
{
50-
char buf[64];
50+
char buf[128];
5151

5252
TEST(flistxattr(fd, buf, sizeof(buf)));
5353
if (TST_RET == -1) {

0 commit comments

Comments
 (0)