Skip to contentSkip to conversation

smack: introduce some simple tests for smack task label c/r

PATCH New Serge E. Hallyn 1 participant 1 message Aug 27, 2009

lore
Share & tools
lore
#0 lore raw

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.)

---
 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
new file mode 100644
index 0000000000000000000000000000000000000000..6f0cdce4c6c976e8fe5041a820ebb4e025038727
GIT binary patch
smack/Makefile new file +8 -0
new file mode 100644
index 0000000..5377520
@@ -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
new file mode 100644
index 0000000..05d3a93
@@ -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
new file mode 100644
index 0000000..ed0d471
@@ -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