]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
securityselinuxlabeltest: Don't create dummy file in the srcdir
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Jul 2014 12:52:28 +0000 (14:52 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Jul 2014 14:45:35 +0000 (16:45 +0200)
commite5f5805f62dad36a7c6ba273f9187c0d6f0c3d29
treea0e0768eed7ee69120f6f317160796957a25a146
parent1c7601f5c37d0441396fb9a66af2400781213e0c
securityselinuxlabeltest: Don't create dummy file in the srcdir

At the very beginning of the test we check if the underlying
filesystem supports extended attributes as they are used to store fake
SELinux labels. In order to check that, a dummy file is created and
semi-random attribute is set. However, the file is created under:

  abs_srcdir "/securityselinuxlabeldata/testxattr"

which has two problems: abs_srcdir is not required to be writable, so
it should have been abs_builddir. The second one is - there's no
"securityselinuxlabeldata" folder under abs_builddir. The problem was
introduced in caf164f1.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/securityselinuxlabeltest.c