Let key-manager read test app /proc 00/325100/2 ckm
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 2 Jun 2025 15:34:27 +0000 (17:34 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 4 Jun 2025 11:33:47 +0000 (11:33 +0000)
Key-manager needs it to access /proc/<pid> in
security_manager_get_app_owner_uid().

Change-Id: Ic82dceeed8a310b40b8608007a90f08550d8556f

src/ckm/privileged/scoped-app-context.cpp

index f19ac9e5aa27be3b17a0c913cdba3a9b7953a2e0..517f63b4b0308518f0f12796f5e17a9a03642c5d 100644 (file)
@@ -33,7 +33,7 @@ ScopedAppContext::ScopedAppContext(const std::string& owner, uid_t user, gid_t g
     , m_oldUser(geteuid())
     , m_oldGroup(getegid())
 {
-    m_context.allowAccessFrom("System", "w");
+    m_context.allowAccessFrom("System", "rw"); // r needed to access client's /proc/<pid>/
     m_context.allowAccessTo("System", "w");
     m_context.allowAccessTo("System::Run", "wx"); // Necessary for logging with journald