From: Krzysztof Jackiewicz Date: Mon, 12 May 2025 11:26:00 +0000 (+0200) Subject: Return "/Unknown" as a no-smack owner id X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22bb6c7f00358c6446bcff8c10b715492ccb6d73;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Return "/Unknown" as a no-smack owner id If key-manager is not able to identify the client app it stores the data as an "/Unknown" owner. In case of unprivileged tests we're not able to install an app or a user so we have to pretend to be an unknown app. Make getOwnerIdFromSelf() return that string on no-smack. This fixes all ckm-tests and e2ee-tests on no-smack. Change-Id: I619eeb9473785cb3289e2eed9e6f28743e051a1d --- diff --git a/src/ckm/ckm-common.cpp b/src/ckm/ckm-common.cpp index 379a9f69..d4feb1b3 100644 --- a/src/ckm/ckm-common.cpp +++ b/src/ckm/ckm-common.cpp @@ -78,7 +78,7 @@ std::string getOwnerIdFromSelf() { smack.insert(smack.begin(), '/'); return smack; } else { - return "default_app_no_Smack_mode"; + return "/Unknown"; } }