From b6ee0e242347617a461f6ab60ce03d25df503c95 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 22 Feb 2022 10:26:39 +0000 Subject: [PATCH] tests: Don't copy extended attributes when testing pseudo-files It seems that on SELinux systems, files in /proc have extended attributes that cannot be copied by an unprivileged user. Signed-off-by: Simon McVittie --- tests/test-libglnx-fdio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-libglnx-fdio.c b/tests/test-libglnx-fdio.c index 01ab1fc5..b9aa682a 100644 --- a/tests/test-libglnx-fdio.c +++ b/tests/test-libglnx-fdio.c @@ -268,7 +268,9 @@ test_filecopy_procfs (void) if (!glnx_file_copy_at (AT_FDCWD, pseudo_files[i], NULL, AT_FDCWD, "copy", - GLNX_FILE_COPY_OVERWRITE | GLNX_FILE_COPY_NOCHOWN, + (GLNX_FILE_COPY_OVERWRITE | + GLNX_FILE_COPY_NOCHOWN | + GLNX_FILE_COPY_NOXATTRS), NULL, error)) return;