]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix false failure in cp --preserve=context test
authorPádraig Brady <P@draigBrady.com>
Fri, 18 Jul 2014 11:43:48 +0000 (12:43 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 18 Jul 2014 12:01:45 +0000 (13:01 +0100)
commitc0a29dd5f64761e0459f29d7357854590d275dee
tree375ba726ef479b6fb3bb774713c142be3b0a025e
parent49acb5a8828d37516e795987c7426e664ef47677
tests: fix false failure in cp --preserve=context test

With libselinux-2.2.1-6.fc20.x86_64, kernel-3.12.6-300.fc20.x86_64
`cp --preserve=context src dst` was seen to succeed when src and
dst where on the same fixed context file system, as lsetfilecon()
returned success in this case when the context wasn't being changed.

* tests/cp/cp-a-selinux.sh: Copy from a different file system to
most likely have a different context that will test context
setting logic correctly.
tests/cp/cp-a-selinux.sh