============================================== GNU coreutils 6.12: tests/test-suite.log ============================================== 4 of 335 tests failed. (73 tests were not run). .. contents:: :depth: 2 FAIL: misc/runcon-no-reorder.log (exit: 1) ========================================== + runcon --version runcon (GNU coreutils) 6.12 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Russell Coker. + . ./test-lib.sh ++ unset function_test ++ eval 'function_test() { return 11; }; function_test' +++ function_test +++ return 11 ++ test 11 '!=' 11 +++ pwd ++ test_dir_=/builddir/build/BUILD/coreutils-6.12/tests +++ this_test_ +++ echo ././misc/runcon-no-reorder +++ sed 's,.*/,,' ++ this_test=runcon-no-reorder +++ /builddir/build/BUILD/coreutils-6.12/src/mktemp -d --tmp=/builddir/build/BUILD/coreutils-6.12/tests cu-runcon-no-reorder.XXXXXXXXXX ++ t_=/builddir/build/BUILD/coreutils-6.12/tests/cu-runcon-no-reorder.tsH7dYyI7r ++ trap 'st=$?; cleanup_; d=/builddir/build/BUILD/coreutils-6.12/tests/cu-runcon-no-reorder.tsH7dYyI7r; cd /builddir/build/BUILD/coreutils-6.12/tests && chmod -R u+rwx "$d" && rm -rf "$d" && exit $st' 0 ++ trap '(exit $?); exit $?' 1 2 13 15 ++ cd /builddir/build/BUILD/coreutils-6.12/tests/cu-runcon-no-reorder.tsH7dYyI7r ++ diff --version ++ grep GNU + cat + fail=0 ++ id -Z + runcon root:system_r:unconfined_t:s0-s0:c0.c1023 true -j + compare out exp + diff -u out exp --- out 2008-06-13 14:06:23.000000000 -0400 +++ exp 2008-06-13 14:06:23.000000000 -0400 @@ -1 +1 @@ -runcon: invalid context: root:system_r:unconfined_t:s0-s0:c0.c1023: No such file or directory +runcon: runcon may be used only on a SELinux kernel + fail=1 + exit 1 + exit 1 + st=1 + cleanup_ + : + d=/builddir/build/BUILD/coreutils-6.12/tests/cu-runcon-no-reorder.tsH7dYyI7r + cd /builddir/build/BUILD/coreutils-6.12/tests + chmod -R u+rwx /builddir/build/BUILD/coreutils-6.12/tests/cu-runcon-no-reorder.tsH7dYyI7r + rm -rf /builddir/build/BUILD/coreutils-6.12/tests/cu-runcon-no-reorder.tsH7dYyI7r + exit 1 FAIL: cp/cp-a-selinux.log (exit: 1) =================================== + cp --version cp (GNU coreutils) 6.12 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Torbj?rn Granlund, David MacKenzie, and Jim Meyering. + . ./test-lib.sh ++ unset function_test ++ eval 'function_test() { return 11; }; function_test' +++ function_test +++ return 11 ++ test 11 '!=' 11 +++ pwd ++ test_dir_=/builddir/build/BUILD/coreutils-6.12/tests +++ this_test_ +++ echo ././cp/cp-a-selinux +++ sed 's,.*/,,' ++ this_test=cp-a-selinux +++ /builddir/build/BUILD/coreutils-6.12/src/mktemp -d --tmp=/builddir/build/BUILD/coreutils-6.12/tests cu-cp-a-selinux.XXXXXXXXXX ++ t_=/builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9 ++ trap 'st=$?; cleanup_; d=/builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9; cd /builddir/build/BUILD/coreutils-6.12/tests && chmod -R u+rwx "$d" && rm -rf "$d" && exit $st' 0 ++ trap '(exit $?); exit $?' 1 2 13 15 ++ cd /builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9 ++ diff --version ++ grep GNU + require_root_ + uid_is_privileged_ ++ id -u + my_uid=0 + case $my_uid in + NON_ROOT_USERNAME=nobody + require_selinux_ + case `ls --scontext -d . | cut -f1 -d" "` in ++ ls --scontext -d . ++ cut -f1 '-d ' ++ pwd + cwd=/builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9 + dd if=/dev/zero of=blob bs=8192 count=200 + mkdir mnt + mkfs -t ext2 -F blob mkfs.ext2: No such file or directory + framework_failure + error_ 'failure in testing framework' + echo './cp/cp-a-selinux: failure in testing framework' ./cp/cp-a-selinux: failure in testing framework + exit 1 + exit 1 + st=1 + cleanup_ + cd / + umount /builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9/mnt umount: /builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9/mnt: not mounted + d=/builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9 + cd /builddir/build/BUILD/coreutils-6.12/tests + chmod -R u+rwx /builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9 + rm -rf /builddir/build/BUILD/coreutils-6.12/tests/cu-cp-a-selinux.SU98MMnlO9 + exit 1 FAIL: cp/preserve-gid.log (exit: 1) =================================== + cp --version cp (GNU coreutils) 6.12 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Torbj?rn Granlund, David MacKenzie, and Jim Meyering. ++ perl -le 'foreach my $i (1000..16*1024-1) { getpwuid $i or (print $i), exit }' + nameless_uid=1000 ++ perl -le 'foreach my $i (1000..16*1024) { getgrgid $i or (print $i), exit }' + nameless_gid1=1000 ++ perl -le 'foreach my $i (1000+1..16*1024) { getgrgid $i or (print $i), exit }' + nameless_gid2=1001 + test -z 1000 + test -z 1000 + test -z 1001 + chown +1000:+0 . + create a0 0 0 + echo a0 + chown +0:+0 a0 + create b0 1000 1000 + echo b0 + chown +1000:+1000 b0 + create b1 1000 1001 + echo b1 + chown +1000:+1001 b1 + create c0 0 1000 + echo c0 + chown +0:+1000 c0 + create c1 0 1001 + echo c1 + chown +0:+1001 c1 + t0 a0 0 0 cp + f=a0 + shift + u=0 + shift + g=0 + shift + rm -f b + cp a0 b ++ stat -c '%u %g' b + s='0 103' + test 'x0 103' '!=' 'x0 0' + test 'x0 103' = 'x0 0' + echo './cp/preserve-gid: cp a0 b: 0 0 != 0 103' ./cp/preserve-gid: cp a0 b: 0 0 != 0 103 + exit 1 + exit 1 + st=1 + cleanup_ + : + d=/builddir/build/BUILD/coreutils-6.12/tests/cu-preserve-gid.xJQNbUjHOP + cd /builddir/build/BUILD/coreutils-6.12/tests + chmod -R u+rwx /builddir/build/BUILD/coreutils-6.12/tests/cu-preserve-gid.xJQNbUjHOP + rm -rf /builddir/build/BUILD/coreutils-6.12/tests/cu-preserve-gid.xJQNbUjHOP + exit 1 FAIL: rm/fail-2eperm.log (exit: 1) ================================== + rm --version rm (GNU coreutils) 6.12 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering. + . ./test-lib.sh ++ unset function_test ++ eval 'function_test() { return 11; }; function_test' +++ function_test +++ return 11 ++ test 11 '!=' 11 +++ pwd ++ test_dir_=/builddir/build/BUILD/coreutils-6.12/tests +++ this_test_ +++ echo ././rm/fail-2eperm +++ sed 's,.*/,,' ++ this_test=fail-2eperm +++ /builddir/build/BUILD/coreutils-6.12/src/mktemp -d --tmp=/builddir/build/BUILD/coreutils-6.12/tests cu-fail-2eperm.XXXXXXXXXX ++ t_=/builddir/build/BUILD/coreutils-6.12/tests/cu-fail-2eperm.cc4dv42JQK ++ trap 'st=$?; cleanup_; d=/builddir/build/BUILD/coreutils-6.12/tests/cu-fail-2eperm.cc4dv42JQK; cd /builddir/build/BUILD/coreutils-6.12/tests && chmod -R u+rwx "$d" && rm -rf "$d" && exit $st' 0 ++ trap '(exit $?); exit $?' 1 2 13 15 ++ cd /builddir/build/BUILD/coreutils-6.12/tests/cu-fail-2eperm.cc4dv42JQK ++ diff --version ++ grep GNU + require_root_ + uid_is_privileged_ ++ id -u + my_uid=0 + case $my_uid in + NON_ROOT_USERNAME=nobody + chown nobody . + mkdir a + chmod 1777 a + touch a/b + fail=0 ++ setuidgid nobody env PATH=/builddir/build/BUILD/coreutils-6.12/src:/usr/lib64/ccache:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin rm --version ++ sed -n '1s/.* //p' + rm_version=6.10 + case $rm_version in + echo './rm/fail-2eperm: cannot access just-built rm as user nobody' ./rm/fail-2eperm: cannot access just-built rm as user nobody + fail=1 + setuidgid nobody env PATH=/builddir/build/BUILD/coreutils-6.12/src:/usr/lib64/ccache:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin rm -rf a + onp='Operation not permitted' + sed 's/Not owner/Operation not permitted/;s/Permission denied/Operation not permitted/' out-t + cat + compare out exp + diff -u out exp + exit 1 + exit 1 + st=1 + cleanup_ + : + d=/builddir/build/BUILD/coreutils-6.12/tests/cu-fail-2eperm.cc4dv42JQK + cd /builddir/build/BUILD/coreutils-6.12/tests + chmod -R u+rwx /builddir/build/BUILD/coreutils-6.12/tests/cu-fail-2eperm.cc4dv42JQK + rm -rf /builddir/build/BUILD/coreutils-6.12/tests/cu-fail-2eperm.cc4dv42JQK + exit 1