From: jin-gyu.kim Date: Mon, 19 Dec 2016 04:53:40 +0000 (+0900) Subject: Modify SMACK rule test. X-Git-Tag: submit/tizen/20161219.050553^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c8d4624281dc094798a246f18986b67d01e2d2c;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Modify SMACK rule test. Change-Id: I35a135c58389f88ac5da965532d29beb93ab8c64 --- diff --git a/test/smack_rule_test/checksmackrule_loaded.sh b/test/smack_rule_test/checksmackrule_loaded.sh index 99f213f..069d325 100755 --- a/test/smack_rule_test/checksmackrule_loaded.sh +++ b/test/smack_rule_test/checksmackrule_loaded.sh @@ -294,11 +294,11 @@ function RULE_CHECK then return 0 fi - # System _ rwx + # System _ rwxa elif [ "$1" == "System" ] && [[ "$2" == "_" ]] then - if [ "$3" == "rwx" ] + if [ "$3" == "rwxa" ] then return 0 fi @@ -393,10 +393,10 @@ function RULE_CHECK then return 0 fi - # System::Privileged _ rwx + # System::Privileged _ rwxa elif [ "$1" == "System::Privileged" ] && [[ "$2" == "_" ]] then - if [ "$3" == "rwx" ] + if [ "$3" == "rwxa" ] then return 0 fi diff --git a/test/smack_rule_test/checksmackrule_saved.sh b/test/smack_rule_test/checksmackrule_saved.sh index e6725e9..3a75028 100755 --- a/test/smack_rule_test/checksmackrule_saved.sh +++ b/test/smack_rule_test/checksmackrule_saved.sh @@ -295,11 +295,11 @@ function RULE_CHECK then return 0 fi - # System _ rwx + # System _ rwxa elif [ "$1" == "System" ] && [[ "$2" == "_" ]] then - if [ "$3" == "rwx---" ] + if [ "$3" == "rwxa--" ] then return 0 fi @@ -394,10 +394,10 @@ function RULE_CHECK then return 0 fi - # System::Privileged _ rwx + # System::Privileged _ rwxa elif [ "$1" == "System::Privileged" ] && [[ "$2" == "_" ]] then - if [ "$3" == "rwx---" ] + if [ "$3" == "rwxa--" ] then return 0 fi