diff options
author | Pádraig Brady <P@draigBrady.com> | 2020-11-11 17:22:33 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2020-11-11 17:28:54 +0000 |
commit | 6fc695cb4a26f09dfeef8b1c24895a707055334e (patch) | |
tree | 78a06532e3b40d2ccf96d66b73d2aa7aaa5d58f0 /tests/local.mk | |
parent | beafa5c0a303ce51e62963f6fafb9096ac59cac1 (diff) | |
download | coreutils-6fc695cb4a26f09dfeef8b1c24895a707055334e.tar.gz |
ls: fix crash printing SELinux context for unstatable files
This crash was identified by Cyber Independent Testing Lab:
https://cyber-itl.org/2020/10/28/citl-7000-defects.html
and was introduced with commit v6.9.90-11-g4245876e2
* src/ls.c (gobble_file): Ensure scontext is initialized
in the case where files are not statable.
* tests/ls/selinux-segfault.sh: Renamed from proc-selinux-segfault.sh,
and added test case for broken symlinks.
* tests/local.mk: Adjust for the renamed test.
* NEWS: Mention the bug fix.
Diffstat (limited to 'tests/local.mk')
-rw-r--r-- | tests/local.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/local.mk b/tests/local.mk index 799200393..e1c4675c2 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -613,7 +613,7 @@ all_tests = \ tests/ls/multihardlink.sh \ tests/ls/no-arg.sh \ tests/ls/no-cap.sh \ - tests/ls/proc-selinux-segfault.sh \ + tests/ls/selinux-segfault.sh \ tests/ls/quote-align.sh \ tests/ls/readdir-mountpoint-inode.sh \ tests/ls/recursive.sh \ |