When running smack rule test, all apps need to be executed twice. 78/267078/2 accepted/tizen/unified/20211129.035309 submit/tizen/20211126.233820
authorJin-gyu Kim <jin-gyu.kim@samsung.com>
Thu, 25 Nov 2021 22:59:18 +0000 (07:59 +0900)
committerJin-gyu Kim <jin-gyu.kim@samsung.com>
Fri, 26 Nov 2021 00:12:12 +0000 (09:12 +0900)
- Some applications may have dependencies on other apps,
  so double execution is required at first.

Change-Id: I0b345f2348d8bec0fda6a7256aa153d098ca3f89

test/smack_rule_test/checksmackrule.sh

index bf5c1df649875009c857d0714dec7e33d74c4814..32bff94af6381c1f6d139678ffb04dd47ba543e0 100755 (executable)
@@ -20,6 +20,8 @@ then
 fi
 
 # Run all apps to load all SMACK rules
+# Some applications may have dependencies on other apps, so double execution is required at first.
+sqlite3 /opt/dbspace/.security-manager.db "select name from app" | xargs -i sh -c 'app_launcher -s {} | true'
 sqlite3 /opt/dbspace/.security-manager.db "select name from app" | xargs -i sh -c 'app_launcher -s {} | true'
 
 # Copy original SMACK rules