1
From: Christian Kastner <debian@kvr.at>
2
Date: Mon, 26 May 2014 00:44:59 +0200
3
Subject: Disable some tests
5
Some tests do not properly check whether features they need are available.
6
These will be fixed in the next upstream release.
9
Last-Update: 2014-05-29
12
tests/bugzillas/bz1031154/runtest.sh | 87 ------------------------------------
13
1 file changed, 87 deletions(-)
14
delete mode 100644 tests/bugzillas/bz1031154/runtest.sh
16
diff --git a/tests/bugzillas/bz1031154/runtest.sh b/tests/bugzillas/bz1031154/runtest.sh
17
deleted file mode 100644
18
index e4d64d4..0000000
19
--- a/tests/bugzillas/bz1031154/runtest.sh
24
-# Test for https://bugzilla.redhat.com/show_bug.cgi?id=1031154
26
-. ../../prepare.inc.sh
27
-. ../../toolbox.inc.sh
30
-# ---- do the actual testing ----
33
-echo "++++ BEGINNING TEST" >$OUTPUTFILE
35
-# we need a reference time to scan the audit log from so as not to pick up old
36
-# results from this test.
37
-base_date=`date +"%x@%X"`
38
-base_time=${base_date#*@}
39
-base_date=${base_date%@*}
42
-# reset the permissive audit log autocancel thing
45
-# we need to be in permissive mode
46
-marker "ENTER SELINUX PERMISSIVE MODE"
50
-if [ "$mode" != "Permissive" ]
52
- echo setenforce Permissive >>$OUTPUTFILE
53
- if ! setenforce Permissive
59
-# create a big key to probe
60
-marker "CREATE BIG KEY"
61
-pcreate_key_by_size 8192 big_key test-key @s
64
-# check the big key is file backed and the right size
65
-marker "CHECK BIG KEY"
66
-xid=`printf %08x $id`
68
-pk=`cat /proc/keys | grep "^$xid.*test-key: 8192 \\[file\\]"`
69
-echo $pk >>$OUTPUTFILE
72
- echo "+++ Incorrectly created key" >>$OUTPUTFILE
73
- cat /proc/keys | grep "^$xid" >>$OUTPUTFILE
77
-# use a separate context to access the key
78
-marker "ACCESS INTERCONTEXT"
80
-echo runcon system_u:system_r:httpd_t:s0-s0:c0.c1023 keyctl print $id >>$OUTPUTFILE
81
-if ! runcon system_u:system_r:httpd_t:s0-s0:c0.c1023 keyctl print $id >/dev/null 2>>$OUTPUTFILE
86
-# examine the audit logs
87
-marker "EXAMINE AUDIT LOGS"
89
-echo ausearch -m AVC -i --subject httpd_t -ts $base_date $base_time \| audit2allow \| grep '-P "allow httpd_t user_tmpfs_t:file [{] (open |read )+[}];"' >>$OUTPUTFILE
90
-if ausearch -m AVC -i --subject httpd_t -ts $base_date $base_time 2>>$OUTPUTFILE | audit2allow 2>>$OUTPUTFILE | grep -P "allow httpd_t user_tmpfs_t:file [{] (open |read )+[}];"
95
-marker "RESTORE SELINUX MODE"
96
-if [ "$mode" != "Permissive" ]
98
- echo setenforce $mode >>$OUTPUTFILE
99
- if ! setenforce $mode
105
-echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
107
-# --- then report the results in the database ---
108
-toolbox_report_result $TEST $result