summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss@m4x.org>2014-01-04 03:03:51 +0000
committerPádraig Brady <P@draigBrady.com>2014-01-13 23:11:37 +0000
commitd718331e59afb35e56445f3a1597ed74a7f3a3e2 (patch)
treee223ecfbeca136b7001a8efaacbc80e011603825 /NEWS
parentba25b75dc2a4f37cb65b5e2ff1bf41bd1707770b (diff)
downloadcoreutils-d718331e59afb35e56445f3a1597ed74a7f3a3e2.tar.xz
copy: fix a segfault in SELinux context copying code
* src/selinux.c (restorecon_private): On ArchLinux the `fakeroot cp -a file1 file2` command segfaulted due to getfscreatecon() returning a NULL context. So map this to the sometimes ignored ENODATA error, rather than crashing. * tests/cp/no-ctx.sh: Add a new test case. * tests/local.mk: Reference the new test. * NEWS: Mention the fix. Fixes http://bugs.gnu.org/16335
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3e1f9c6ac..699a7d3a1 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,11 @@ GNU coreutils NEWS -*- outline -*-
the context of an existing directory to that of its last copied descendent.
[bug introduced in coreutils-8.22]
+ cp -a, mv, and install --preserve-context, no longer seg fault when running
+ with SELinux enabled, when copying from file systems that return an error
+ when reading the SELinux context for a file.
+ [bug introduced in coreutils-8.22]
+
* Noteworthy changes in release 8.22 (2013-12-13) [stable]