Return "/Unknown" as a no-smack owner id 36/324036/6
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 12 May 2025 11:26:00 +0000 (13:26 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 21 May 2025 13:59:01 +0000 (13:59 +0000)
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

src/ckm/ckm-common.cpp

index 379a9f6987a7eac63387defa48ca9b8e97f702f3..d4feb1b3c9ec27a0b6d5490bddd2217459ae104b 100644 (file)
@@ -78,7 +78,7 @@ std::string getOwnerIdFromSelf() {
         smack.insert(smack.begin(), '/');
         return smack;
     } else {
-        return "default_app_no_Smack_mode";
+        return "/Unknown";
     }
 }