Re: [PATCH 0/2] selinux-testsuite: Use native filesystem for tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 12, 2020 at 7:37 AM Richard Haines
<richard_c_haines@xxxxxxxxxxxxxx> wrote:
>
> If you test on the selinux-next kernel (that has the XFS patch [1]) with
> the "NFS: Ensure security label is set for root inode" patch [2], then all
> tests should pass. Anything else will give varying amounts of fails.
>
> The filesystem types tested are: ext4, xfs, vfat and nfs4.
>
> I've revamped the nfs.sh to handle tests that require specific mount
> options, these plus many more are now in tests/nfs_filesystem. This only
> gets run by nfs.sh.
>
> There are two minor workarounds involving multiple mounts returning EBUSY.
> These are either bugs or features.
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/security/selinux?id=e4cfa05e9bfe286457082477b32ecd17737bdbce
> [2] https://lore.kernel.org/selinux/20200303225837.1557210-1-smayhew@xxxxxxxxxx/

Still failing for me:
filesystem/test ............. 13/27 Failed mount(2): Permission denied
filesystem/test ............. 18/27
#   Failed test at filesystem/test line 679.
Failed umount(2): Invalid argument

#   Failed test at filesystem/test line 690.
Failed mount(2): Permission denied
filesystem/test ............. 21/27
#   Failed test at filesystem/test line 714.
Failed umount(2): Invalid argument

#   Failed test at filesystem/test line 726.
Failed mount(2): Permission denied

#   Failed test at filesystem/test line 750.
filesystem/test ............. 25/27
#   Failed test at filesystem/test line 756.
Failed umount(2): Invalid argument

#   Failed test at filesystem/test line 763.
# Looks like you failed 7 tests of 27.
filesystem/test ............. Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/27 subtests
fs_filesystem/test .......... 18/26 Failed fsconfig(2): Permission denied
Failed config_opts

#   Failed test at fs_filesystem/test line 706.
fs_filesystem/test .......... 20/26 Failed umount(2): Invalid argument

#   Failed test at fs_filesystem/test line 717.
Failed fsconfig(2): Permission denied
Failed config_opts
fs_filesystem/test .......... 23/26
#   Failed test at fs_filesystem/test line 780.

#   Failed test at fs_filesystem/test line 786.
Failed umount(2): Invalid argument

#   Failed test at fs_filesystem/test line 794.
fs_filesystem/test .......... 26/26 # Looks like you failed 5 tests of 26.
fs_filesystem/test .......... Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/26 subtests

Test Summary Report
-------------------
filesystem/test           (Wstat: 1792 Tests: 27 Failed: 7)
  Failed tests:  18, 20-21, 23-26
  Non-zero exit status: 7
fs_filesystem/test        (Wstat: 1280 Tests: 26 Failed: 5)
  Failed tests:  19, 21, 23-25
  Non-zero exit status: 5
Files=63, Tests=623, 164 wallclock secs ( 0.36 usr  0.99 sys +  2.77
cusr 48.23 csys = 52.35 CPU)
Result: FAIL
Failed 2/63 test programs. 12/623 subtests failed.
make: *** [Makefile:133: test] Error 5
make: Leaving directory '/mnt/selinux-testsuite/tests'
Test failed on line: 72 - Closing down NFS



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux