Home
last modified time | relevance | path

Searched refs:smackfsdir (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/kernel/security/smack/
Dsmack_common.sh28 smackfsdir=${smackfsdir:=/smack}
32 grep -q $smackfsdir /proc/mounts
34 tst_brkm TCONF "smackfs not mounted at \"$smackfsdir\""
40 onlycap=$(cat "$smackfsdir/onlycap" 2>/dev/null)
42 tst_brkm TCONF "\"$smackfsdir/onlycap\" is \"$onlycap\", not" \
Dsmack_set_cipso.sh28 old_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
30 echo -n "$rule_a" 2>/dev/null > "$smackfsdir/cipso"
31 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
40 echo -n "$rule_b" 2>/dev/null > "$smackfsdir/cipso"
41 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
50 echo -n "$rule_c" 2>/dev/null > "$smackfsdir/cipso"
51 new_rule=$(grep "^TheOne" "$smackfsdir/cipso" 2>/dev/null)
Dsmack_set_onlycap.sh21 start_label=$(cat "$smackfsdir/onlycap" 2>/dev/null)
23 echo "$my_label" 2>/dev/null > "$smackfsdir/onlycap"
25 label=$(cat "$smackfsdir/onlycap" 2>/dev/null)
27 tst_brkm TFAIL "The smack label reported for \"$smackfsdir/onlycap\" "
31 echo "$start_label" 2>/dev/null > "$smackfsdir/onlycap"
33 label=$(cat "$smackfsdir/onlycap" 2>/dev/null)
Dsmack_set_netlabel.sh24 old32=$(grep "^191.191.191.191/32" "$smackfsdir/netlabel" 2>/dev/null)
25 old24=$(grep "^191.190.190.0/24" "$smackfsdir/netlabel" 2>/dev/null)
27 echo -n "$rule_a" 2>/dev/null > "$smackfsdir/netlabel"
28 new32=$(grep "$rule_a1" $smackfsdir/netlabel 2>/dev/null)
33 echo -n "$rule_b" 2>/dev/null > "$smackfsdir/netlabel"
34 new24=$(grep "$rule_b" "$smackfsdir/netlabel" 2>/dev/null)
Dsmack_set_ambient.sh21 start_label=$(cat "$smackfsdir/ambient" 2>/dev/null)
23 echo "$not_floor_label" 2>/dev/null > "$smackfsdir/ambient"
25 label=$(cat "$smackfsdir/ambient" 2>/dev/null)
31 echo "$start_label" 2>/dev/null > "$smackfsdir/ambient"
33 label=$(cat "$smackfsdir/ambient" 2>/dev/null)
Dsmack_set_doi.sh21 start_value=$(cat "$smackfsdir/doi" 2>/dev/null)
23 echo "$not_start_value" 2>/dev/null > "$smackfsdir/doi"
25 direct_value=$(cat "$smackfsdir/doi" 2>/dev/null)
31 echo "$start_value" 2>/dev/null > "$smackfsdir/doi"
33 direct_value=$(cat "$smackfsdir/doi" 2>/dev/null)
Dsmack_set_direct.sh21 start_value=$(cat "$smackfsdir/direct" 2>/dev/null)
23 echo "$not_start_value" 2>/dev/null > "$smackfsdir/direct"
25 direct_value=$(cat "$smackfsdir/direct" 2>/dev/null)
31 echo "$start_value" 2>/dev/null> "$smackfsdir/direct"
33 direct_value=$(cat "$smackfsdir/direct" 2>/dev/null)
Dsmack_set_load.sh27 old_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
29 echo -n "$rule_a" 2>/dev/null > "$smackfsdir/load"
30 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
39 echo -n "$rule_b" 2>/dev/null > "$smackfsdir/load"
40 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
Dsmack_file_access.sh50 old_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
52 echo -n "$rule_a" > "$smackfsdir/load"
53 new_rule=$(grep "^TheOne" "$smackfsdir/load" 2>/dev/null | grep ' TheOther ')
77 echo -n "$rule_b" 2>/dev/null > "$smackfsdir/load"
78 new_rule=$(grep "^TheOne" $smackfsdir/load 2>/dev/null | grep ' TheOther ')