Home
last modified time | relevance | path

Searched refs:new_rule (Results 1 – 5 of 5) sorted by relevance

/external/ltp/testcases/kernel/security/smack/
Dsmack_set_cipso.sh31 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
32 if [ "$new_rule" = "" ]; then
35 right=$(echo "$new_rule" | grep ' 2')
37 tst_brkm TFAIL "Rule \"$new_rule\" is not set correctly."
41 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
42 if [ "$new_rule" = "" ]; then
45 right=$(echo $new_rule | grep '/55')
47 tst_brkm TFAIL "Rule \"$new_rule\" is not set correctly."
51 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
52 if [ "$new_rule" = "" ]; then
[all …]
Dsmack_set_load.sh30 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
31 if [ "$new_rule" = "" ]; then
34 mode=$(echo "$new_rule" | sed -e 's/.* //')
36 tst_brkm TFAIL "Rule \"$new_rule\" is not set correctly."
40 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
41 if [ "$new_rule" = "" ]; then
44 mode=$(echo "$new_rule" | sed -e 's/.* //')
46 tst_brkm TFAIL "Rule \"$new_rule\" is not set correctly."
49 if [ "$old_rule" != "$new_rule" ]; then
51 "to \"$new_rule\"."
Dsmack_file_access.sh53 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
54 if [ "$new_rule" = "" ]; then
57 mode=$(echo $new_rule | sed -e 's/.* //')
59 tst_brkm TFAIL "Rule \"$new_rule\" is not set correctly."
78 new_rule=$(grep "^TheOne" $smackfsdir/load 2>/dev/null | grep ' TheOther ')
79 if [ "$new_rule" = "" ]; then
82 mode=$(echo $new_rule | sed -e 's/.* //')
84 tst_brkm TFAIL "Rule \"$new_rule\" is not set correctly."
87 if [ "$old_rule" != "$new_rule" ]; then
89 "to \"$new_rule\"."
/external/selinux/libsepol/src/
Dlink.c1264 avrule_t *cur, *new_rule = NULL, *tail; in copy_avrule_list() local
1274 if ((new_rule = (avrule_t *) malloc(sizeof(avrule_t))) == NULL) { in copy_avrule_list()
1277 avrule_init(new_rule); in copy_avrule_list()
1279 new_rule->specified = cur->specified; in copy_avrule_list()
1280 new_rule->flags = cur->flags; in copy_avrule_list()
1282 (&cur->stypes, &new_rule->stypes, module, state) == -1 in copy_avrule_list()
1283 || type_set_convert(&cur->ttypes, &new_rule->ttypes, module, in copy_avrule_list()
1301 if (new_rule->specified & AVRULE_AV) { in copy_avrule_list()
1319 if (new_rule->perms == NULL) { in copy_avrule_list()
1320 new_rule->perms = new_perm; in copy_avrule_list()
[all …]
/external/iptables/libiptc/
Dlibiptc.c988 goto new_rule; in cache_add_entry()
992 new_rule: in cache_add_entry()