diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-01-02 16:40:58 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-01-13 12:52:26 +0000 |
commit | 243128dbf0293be7b170dd47c8dbf3ed1834c093 (patch) | |
tree | 55b105c10b08539b90491398275c7f62c35f130e /tests/ls | |
parent | 5d7591d0edf0dd31c2daa195ee766c1383b89f4c (diff) | |
download | coreutils-243128dbf0293be7b170dd47c8dbf3ed1834c093.tar.xz |
copy: fix SELinux context preservation for existing directories
* src/copy.c (copy_internal): Use the global process context
to set the context of existing directories before they're populated.
This is more consistent with the new directory case, and fixes
a bug for existing directories where we erroneously set the
context to the last copied descendent, rather than to that of
the source directory itself.
* tests/cp/cp-a-selinux.sh: Add a test for this case.
* NEWS: Mention the fix.
* THANKS.in: Add reporter Michal Trunecka.
Diffstat (limited to 'tests/ls')
0 files changed, 0 insertions, 0 deletions