selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] selinux-testsuite: Add fs*(2) API filesystem tests
@ 2020-01-27  9:32 Richard Haines
  2020-01-27  9:32 ` [PATCH V2 1/2] selinux-testsuite: Prepare for adding fs*(2) API tests Richard Haines
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Richard Haines @ 2020-01-27  9:32 UTC (permalink / raw)
  To: selinux; +Cc: Richard Haines

These patches update the current tests/filesystem to share code (patch 1)
with the fs*(2) API filesystem tests (patch 2).

V2 Changes:
1) If kernel patch [1] installed move_mount test for denying FILE__MOUNTON
   should pass. If not installed, display 'Failed as kernel 5.x without
   "selinux: fix regression introduced by move_mount(2) syscall" patch'
   (as there is a regression that should be fixed).
   Note: Kernels 5.2 - 5.5 will fail unless [1] backported. 5.6 is expected
   to have [1].
2) Move policy changes to patch 2.

[1] https://lore.kernel.org/selinux/20200117202407.12344-1-sds@tycho.nsa.gov

Richard Haines (2):
  selinux-testsuite: Prepare for adding fs*(2) API tests
  selinux-testsuite: Add fs*(2) API filesystem tests

 policy/test_filesystem.te        |  18 +-
 tests/Makefile                   |   6 +
 tests/filesystem/Filesystem.pm   | 166 ++++++
 tests/filesystem/test            | 219 ++------
 tests/fs_filesystem/.gitignore   |   3 +
 tests/fs_filesystem/Makefile     |  16 +
 tests/fs_filesystem/fs_common.c  | 110 ++++
 tests/fs_filesystem/fs_common.h  |  30 ++
 tests/fs_filesystem/fsmount.c    |  89 ++++
 tests/fs_filesystem/fspick.c     |  68 +++
 tests/fs_filesystem/move_mount.c |  76 +++
 tests/fs_filesystem/test         | 835 +++++++++++++++++++++++++++++++
 tools/check-syntax               |   2 +-
 13 files changed, 1455 insertions(+), 183 deletions(-)
 create mode 100644 tests/filesystem/Filesystem.pm
 create mode 100644 tests/fs_filesystem/.gitignore
 create mode 100644 tests/fs_filesystem/Makefile
 create mode 100644 tests/fs_filesystem/fs_common.c
 create mode 100644 tests/fs_filesystem/fs_common.h
 create mode 100644 tests/fs_filesystem/fsmount.c
 create mode 100644 tests/fs_filesystem/fspick.c
 create mode 100644 tests/fs_filesystem/move_mount.c
 create mode 100755 tests/fs_filesystem/test

-- 
2.24.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-29 18:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-27  9:32 [PATCH V2 0/2] selinux-testsuite: Add fs*(2) API filesystem tests Richard Haines
2020-01-27  9:32 ` [PATCH V2 1/2] selinux-testsuite: Prepare for adding fs*(2) API tests Richard Haines
2020-01-27  9:32 ` [PATCH V2 2/2] selinux-testsuite: Add fs*(2) API filesystem tests Richard Haines
2020-01-29 18:21   ` Stephen Smalley
2020-01-27 17:46 ` [PATCH V2 0/2] " Stephen Smalley
2020-01-29 12:56   ` Richard Haines
2020-01-29 13:06     ` Stephen Smalley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).