diff options
author | Nicolas Iooss <nicolas.iooss@m4x.org> | 2014-01-04 03:03:51 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-01-13 23:11:37 +0000 |
commit | d718331e59afb35e56445f3a1597ed74a7f3a3e2 (patch) | |
tree | e223ecfbeca136b7001a8efaacbc80e011603825 /NEWS | |
parent | ba25b75dc2a4f37cb65b5e2ff1bf41bd1707770b (diff) | |
download | coreutils-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-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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] |