GNU bug report logs - #16335
Segmentation fault when using cp -a with SELinux and fakeroot

Previous Next

Package: coreutils;

Reported by: Nicolas Iooss <nicolas.iooss <at> m4x.org>

Date: Sat, 4 Jan 2014 00:38:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: nicolas.iooss <at> m4x.org, 16335 <at> debbugs.gnu.org
Subject: bug#16335: Segmentation fault when using cp -a with SELinux and fakeroot
Date: Tue, 14 Jan 2014 11:35:13 +0000
On 01/14/2014 10:54 AM, Bernhard Voelker wrote:
> On 01/13/2014 09:09 PM, Pádraig Brady wrote:
>> Pushing the attached 2 patches in a while.
> 
> Hi Padraig,
> 
> thanks, the refactoring into gcc_shared_ is a good idea.
> 
> But I missed this one:
> when selinux is not supported, the new no-ctx.sh test is skipped
> with the wrong and misleading "LD_PRELOAD interception failed" diagnostic:

> + test -e preloaded
> + skip_ 'LD_PRELOAD interception failed'

Oh right. I think this should restrict the test appropriately...

commit 3620df245a2211dc441e019845f98b91333bda77
Author: Pádraig Brady <P <at> draigBrady.com>
Date:   Tue Jan 14 11:30:51 2014 +0000

    tests: restrict a recent SELinux test to SELinux systems

    * tests/cp/no-ctx.sh: Since the test diagnoses whether the
    intercepted lgetfilecon() calls are actually called or not,
    restrict the test to systems where that occurs.
    The test cases are minimal on non SELinux systems and should
    be well covered by other tests.
    Reported-by: Bernhard Voelker

diff --git a/tests/cp/no-ctx.sh b/tests/cp/no-ctx.sh
index 3b5eb82..6851785 100755
--- a/tests/cp/no-ctx.sh
+++ b/tests/cp/no-ctx.sh
@@ -22,6 +22,7 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ cp
 require_gcc_shared_
+requires_selinux_

 # Replace each getfilecon and lgetfilecon call with a call to these stubs.
 cat > k.c <<'EOF' || framework_failure_





This bug report was last modified 11 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.