smack: introduce some simple tests for smack task label c/r
PATCH 1/1 smack: introduce some simple tests for smack task label c/r
(these tests aren't run by default, so I went ahead and applied them even though the smack c/r patchset isn't applied on the kernel yet.)
Signed-off-by Serge Hallyn <serue-r/[email protected]>
--- smack/.runtest.sh.swp | Bin 0 -> 12288 bytes smack/Makefile | 8 +++++ smack/README | 7 +++++ smack/ckpt.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++ smack/runtest.sh | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ smack/smackpolicy | 6 ++++ 6 files changed, 159 insertions(+), 0 deletions(-) create mode 100644 smack/.runtest.sh.swp create mode 100644 smack/Makefile create mode 100644 smack/README create mode 100644 smack/ckpt.c create mode 100644 smack/runtest.sh create mode 100644 smack/smackpolicy
smack/.runtest.sh.swp new file binary +0 -0
smack/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +targets = ckpt + +all: $(targets) + +ckpt: ckpt.c ../cr.h + +clean: + rm -f $(targets) out context cr-test.out
smack/README new file +7 -0
@@ -0,0 +1,7 @@ +This test is only for smack-enabled kernels. It does a few +sanity checks to test whether task contexts are properly +restored, are restored only if requested, and ar restored only +if permitted. + +Restoration of smack labels on other objects (esp. ipc objects) +remains a TODO.
smack/ckpt.c new file +67 -0
67 lines not on this page · raw message
smack/runtest.sh new file +71 -0
71 lines not on this page · raw message
smack/smackpolicy new file +6 -0
@@ -0,0 +1,6 @@ +vs1 _ rwax +_ vs1 rwax +vs2 vs1 rwax +vs1 vs2 rwax +vs2 _ rwax +_ vs2 rwax
Signature · 1 line
1.6.1.1