mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
9e718f59d3
CheckSkillPermission previously only verified system-app status when callerTokenId was 0, leaving the CliToolMgr-proxied path (non-zero callerTokenId) without any verification. Add two layers of checks: - Direct IPC caller must be a system ability (IsSACall) - Indirect caller must hold every permission declared by the skill (AccessTokenKit::VerifyAccessToken) Also drop the callerTokenId=0 default and thread callerTokenId through the ExecuteInAppSkill path so the direct-call variant is also covered. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: claude (glm-5.2) <ai@local>