Add sample policy for cat(1). am: 1a9e9101a2 am: 5065377d5e
am: d46ae16827
Change-Id: I0b460286ef81867fa607eda6a169cbef2058d67d
diff --git a/examples/cat.policy b/examples/cat.policy
new file mode 100644
index 0000000..dea3dd3
--- /dev/null
+++ b/examples/cat.policy
@@ -0,0 +1,16 @@
+# In this directory, test with:
+# make LIBDIR=.
+# ./minijail0 -n -S examples/cat.policy -- /bin/cat /proc/self/status
+# This policy only works on x86_64.
+
+read: 1
+write: 1
+rt_sigreturn: 1
+exit_group: 1
+
+open: 1
+close: 1
+fstat: 1
+# Enforce W^X.
+mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
+fadvise64: 1