projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9410ab
)
Fix registering provides-appdefined-privileges
85/171885/1
author
Sangyoon Jang
<jeremy.jang@samsung.com>
Thu, 8 Mar 2018 02:46:58 +0000
(11:46 +0900)
committer
Sangyoon Jang
<jeremy.jang@samsung.com>
Thu, 8 Mar 2018 02:46:58 +0000
(11:46 +0900)
security-manager manages security context per app, not package.
And it doesn't allow two apps to define same provides-appdefined-privileges.
Change-Id: Ibaa791cb9505573478bab6e487101b96eeb82e6b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/security_registration.cc
patch
|
blob
|
history
diff --git
a/src/common/security_registration.cc
b/src/common/security_registration.cc
index 955ae1ba69ce4a2e9e0175892d8cff8e1100c92b..14aa886133d8f35f453790046fa4136335d13e47 100644
(file)
--- a/
src/common/security_registration.cc
+++ b/
src/common/security_registration.cc
@@
-186,6
+186,9
@@
class SecurityContextRequest {
return false;
}
}
+ // only one app can provide appdefined privileges
+ if (app_idx_ > 1)
+ return true;
for (auto& priv : provides_appdef_privileges) {
auto privilege_type = !priv.second.empty() ?
SM_APP_DEFINED_PRIVILEGE_TYPE_LICENSED :